Skip to content

Commit

Permalink
rename metric (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Dec 5, 2023
1 parent 1c18c2b commit 7f03bc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/advanced_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Exported metrics:

| **Exported Metric** | **Description** | **Type** |
|:---------------------------------------------: |:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |:--------: |
| cosmos_relayer_observed_packets | The total number of observed packets | Counter |
| cosmos_relayer_relayed_packets | The total number of relayed packets | Counter |
| cosmos_relayer_observed_packets_total | The total number of observed packets | Counter |
| cosmos_relayer_relayed_packets_total | The total number of relayed packets | Counter |
| cosmos_relayer_chain_latest_height | The current height of the chain | Gauge |
| cosmos_relayer_wallet_balance | The current balance for the relayer's wallet | Gauge |
| cosmos_relayer_fees_spent | The amount of fees spent from the relayer's wallet | Gauge |
Expand Down
4 changes: 2 additions & 2 deletions relayer/processor/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ func NewPrometheusMetrics() *PrometheusMetrics {
return &PrometheusMetrics{
Registry: registry,
PacketObservedCounter: registerer.NewCounterVec(prometheus.CounterOpts{
Name: "cosmos_relayer_observed_packets",
Name: "cosmos_relayer_observed_packets_total",
Help: "The total number of observed packets",
}, packetLabels),
PacketRelayedCounter: registerer.NewCounterVec(prometheus.CounterOpts{
Name: "cosmos_relayer_relayed_packets",
Name: "cosmos_relayer_relayed_packets_total",
Help: "The total number of relayed packets",
}, packetLabels),
LatestHeightGauge: registerer.NewGaugeVec(prometheus.GaugeOpts{
Expand Down

0 comments on commit 7f03bc7

Please sign in to comment.