Skip to content

Commit

Permalink
add help info
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Jul 12, 2023
1 parent 3e58d53 commit 2e798f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions relayer/processor/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func NewPrometheusMetrics() *PrometheusMetrics {
packetLabels := []string{"path", "chain", "channel", "port", "type"}
heightLabels := []string{"chain"}
walletLabels := []string{"chain", "key", "address", "denom"}
queryFailureLabels := []string{"chain", "error"}
blockQueryFailureLabels := []string{"chain", "error"}
registry := prometheus.NewRegistry()
registerer := promauto.With(registry)
return &PrometheusMetrics{
Expand All @@ -70,7 +70,8 @@ func NewPrometheusMetrics() *PrometheusMetrics {
}, walletLabels),
BlockQueryFailure: registerer.NewCounterVec(prometheus.CounterOpts{
Name: "cosmos_relayer_block_query_failure",
Help: "The total number of block query failures",
}, queryFailureLabels),
Help: `The total number of block query failures.
These are separated into two catagories: "RPC Client" and "Header"`,
}, blockQueryFailureLabels),
}
}

0 comments on commit 2e798f2

Please sign in to comment.