Skip to content

Commit

Permalink
feat: add chainName for clientExpiry
Browse files Browse the repository at this point in the history
  • Loading branch information
jlehtimaki committed Jan 12, 2024
1 parent 96f9837 commit 763f48b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkg/collector/ibc_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ var (
"Returns light client expiry in unixtime.",
[]string{
"host_chain_id",
"client_id",
"target_chain_id",
"src_chain_name",
"dst_chain_name",
"client_id",
"discord_ids",
"status",
},
Expand Down Expand Up @@ -93,8 +95,10 @@ func (cc IBCCollector) Collect(ch chan<- prometheus.Metric) {
float64(ci.ChainAClientExpiration.Unix()),
[]string{
(*cc.RPCs)[path.Chain1.ChainName].ChainID,
path.Chain1.ClientID,
(*cc.RPCs)[path.Chain2.ChainName].ChainID,
path.Chain1.ChainName,
path.Chain2.ChainName,
path.Chain1.ClientID,
discordIDs,
status,
}...,
Expand All @@ -106,8 +110,10 @@ func (cc IBCCollector) Collect(ch chan<- prometheus.Metric) {
float64(ci.ChainBClientExpiration.Unix()),
[]string{
(*cc.RPCs)[path.Chain2.ChainName].ChainID,
path.Chain2.ClientID,
(*cc.RPCs)[path.Chain1.ChainName].ChainID,
path.Chain2.ChainName,
path.Chain1.ChainName,
path.Chain2.ClientID,
discordIDs,
status,
}...,
Expand Down

0 comments on commit 763f48b

Please sign in to comment.