Fix few wrongly defined metric types (#19586)

`minio_cluster_webhook_queue_length` was wrongly defined as `counter`
where-as it should be `gauge`

Following were wrongly defined as `gauge` when they should actually be
`counter`:

- minio_bucket_replication_sent_bytes
- minio_bucket_replication_received_bytes
- minio_bucket_replication_total_failed_bytes
- minio_bucket_replication_total_failed_count
This commit is contained in:
Shireesh Anjal 2024-04-24 11:49:40 +05:30 committed by GitHub
parent 14cdadfb56
commit 77d5331e85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -907,7 +907,7 @@ func getRepFailedBytesTotalMD(namespace MetricNamespace) MetricDescription {
Subsystem: replicationSubsystem,
Name: totalFailedBytes,
Help: "Total number of bytes failed at least once to replicate since server start",
Type: gaugeMetric,
Type: counterMetric,
}
}
@ -917,7 +917,7 @@ func getRepFailedOperationsTotalMD(namespace MetricNamespace) MetricDescription
Subsystem: replicationSubsystem,
Name: totalFailedCount,
Help: "Total number of objects which failed replication since server start",
Type: gaugeMetric,
Type: counterMetric,
}
}
@ -927,7 +927,7 @@ func getRepSentBytesMD(namespace MetricNamespace) MetricDescription {
Subsystem: replicationSubsystem,
Name: sentBytes,
Help: "Total number of bytes replicated to the target",
Type: gaugeMetric,
Type: counterMetric,
}
}
@ -951,7 +951,7 @@ func getRepReceivedBytesMD(namespace MetricNamespace) MetricDescription {
Subsystem: replicationSubsystem,
Name: receivedBytes,
Help: helpText,
Type: gaugeMetric,
Type: counterMetric,
}
}
@ -3900,7 +3900,7 @@ func getWebhookMetrics() *MetricsGroupV2 {
Subsystem: webhookSubsystem,
Name: webhookQueueLength,
Help: "Webhook queue length",
Type: counterMetric,
Type: gaugeMetric,
},
VariableLabels: labels,
Value: float64(t.Stats().QueueLength),