From 34f688d41cfa4705de592372455105c25fda16d4 Mon Sep 17 00:00:00 2001 From: Tomasz Nowak Date: Mon, 27 Nov 2023 12:29:08 +0100 Subject: [PATCH] feat: Add labels with chain names for cosmos_ibc_stuck_packets metric --- pkg/collector/collector.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/collector/collector.go b/pkg/collector/collector.go index fcf4043..5cd6ddd 100644 --- a/pkg/collector/collector.go +++ b/pkg/collector/collector.go @@ -45,6 +45,8 @@ var ( "dst_channel_id", "src_chain_id", "dst_chain_id", + "src_chain_name", + "dst_chain_name", "discord_ids", "status", }, @@ -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, }..., @@ -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, }...,