Skip to content

Commit 3f3307b

Browse files
committed
Enhance pbmBackupsMetrics to include backup type in metrics
1 parent 327f179 commit 3f3307b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

exporter/pbm_collector.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli
190190
"opid": backup.OPID,
191191
"status": string(backup.Status),
192192
"name": backup.Name,
193+
"type": string(backup.Type),
193194
}),
194195
)
195196

@@ -200,6 +201,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli
200201
"opid": backup.OPID,
201202
"status": string(backup.Status),
202203
"name": backup.Name,
204+
"type": string(backup.Type),
203205
}),
204206
)
205207

@@ -218,6 +220,7 @@ func (p *pbmCollector) pbmBackupsMetrics(ctx context.Context, pbmClient *sdk.Cli
218220
"opid": backup.OPID,
219221
"status": string(backup.Status),
220222
"name": backup.Name,
223+
"type": string(backup.Type),
221224
}),
222225
)
223226
}

0 commit comments

Comments
 (0)