Skip to content

Commit

Permalink
feat: Add labels with chain names for cosmos_ibc_stuck_packets metric
Browse files Browse the repository at this point in the history
  • Loading branch information
kayano committed Nov 27, 2023
1 parent 1bf89eb commit 34f688d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ var (
"dst_channel_id",
"src_chain_id",
"dst_chain_id",
"src_chain_name",
"dst_chain_name",
"discord_ids",
"status",
},
Expand Down Expand Up @@ -148,6 +150,8 @@ func (cc IBCCollector) Collect(ch chan<- prometheus.Metric) {
sp.Destination,
(*cc.RPCs)[path.Chain1.ChainName].ChainID,
(*cc.RPCs)[path.Chain2.ChainName].ChainID,
path.Chain1.ChainName,
path.Chain2.ChainName,
discordIDs,
status,
}...,
Expand All @@ -162,6 +166,8 @@ func (cc IBCCollector) Collect(ch chan<- prometheus.Metric) {
sp.Source,
(*cc.RPCs)[path.Chain2.ChainName].ChainID,
(*cc.RPCs)[path.Chain1.ChainName].ChainID,
path.Chain2.ChainName,
path.Chain1.ChainName,
discordIDs,
status,
}...,
Expand Down

0 comments on commit 34f688d

Please sign in to comment.