feat: add events_errors_total metric (#18610)

This commit is contained in:
jiuker
2023-12-08 08:21:17 +08:00
committed by GitHub
parent 2e23e61a45
commit 6ca6788bb7
2 changed files with 17 additions and 3 deletions

View File

@@ -2475,6 +2475,16 @@ func getNotificationMetrics() *MetricsGroup {
},
Value: float64(nstats.EventsSkipped),
})
metrics = append(metrics, Metric{
Description: MetricDescription{
Namespace: minioNamespace,
Subsystem: notifySubsystem,
Name: "events_errors_total",
Help: "Events that were failed while sending to target",
Type: counterMetric,
},
Value: float64(nstats.EventsErrorsTotal),
})
metrics = append(metrics, Metric{
Description: MetricDescription{
Namespace: minioNamespace,