From 3f3307b331467f4f89de81c2123c24f034873ddb Mon Sep 17 00:00:00 2001 From: theTibi Date: Mon, 29 Sep 2025 16:58:50 +0200 Subject: [PATCH 1/3] Enhance pbmBackupsMetrics to include backup type in metrics --- exporter/pbm_collector.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exporter/pbm_collector.go b/exporter/pbm_collector.go index e4f26c671..b0880f04b 100644 --- a/exporter/pbm_collector.go +++ b/exporter/pbm_collector.go @@ -190,6 +190,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli "opid": backup.OPID, "status": string(backup.Status), "name": backup.Name, + "type": string(backup.Type), }), ) @@ -200,6 +201,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli "opid": backup.OPID, "status": string(backup.Status), "name": backup.Name, + "type": string(backup.Type), }), ) @@ -218,6 +220,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli "opid": backup.OPID, "status": string(backup.Status), "name": backup.Name, + "type": string(backup.Type), }), ) } From 345c18fce9eb59dd2b227ee15ede35b5d65aaf26 Mon Sep 17 00:00:00 2001 From: Tibor Korocz Date: Mon, 20 Oct 2025 13:43:33 +0200 Subject: [PATCH 2/3] Fix formatting in pbm_collector.go --- exporter/pbm_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/pbm_collector.go b/exporter/pbm_collector.go index f791ad1b7..49213316b 100644 --- a/exporter/pbm_collector.go +++ b/exporter/pbm_collector.go @@ -200,7 +200,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli "host": replset.Node, "replica_set": replset.Name, "self": self, - "type": string(backup.Type), + "type": string(backup.Type), } metrics = append(metrics, createPBMMetric("backup_size_bytes", From 0370e2d574803136aa8dc564305b2a0fe4b19cf0 Mon Sep 17 00:00:00 2001 From: Tibor Korocz Date: Mon, 20 Oct 2025 13:51:46 +0200 Subject: [PATCH 3/3] Fix formatting of backup type in pbm_collector.go --- exporter/pbm_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/pbm_collector.go b/exporter/pbm_collector.go index 49213316b..480ef71aa 100644 --- a/exporter/pbm_collector.go +++ b/exporter/pbm_collector.go @@ -200,7 +200,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli "host": replset.Node, "replica_set": replset.Name, "self": self, - "type": string(backup.Type), + "type": string(backup.Type), } metrics = append(metrics, createPBMMetric("backup_size_bytes",