mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
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:
parent
14cdadfb56
commit
77d5331e85
@ -907,7 +907,7 @@ func getRepFailedBytesTotalMD(namespace MetricNamespace) MetricDescription {
|
|||||||
Subsystem: replicationSubsystem,
|
Subsystem: replicationSubsystem,
|
||||||
Name: totalFailedBytes,
|
Name: totalFailedBytes,
|
||||||
Help: "Total number of bytes failed at least once to replicate since server start",
|
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,
|
Subsystem: replicationSubsystem,
|
||||||
Name: totalFailedCount,
|
Name: totalFailedCount,
|
||||||
Help: "Total number of objects which failed replication since server start",
|
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,
|
Subsystem: replicationSubsystem,
|
||||||
Name: sentBytes,
|
Name: sentBytes,
|
||||||
Help: "Total number of bytes replicated to the target",
|
Help: "Total number of bytes replicated to the target",
|
||||||
Type: gaugeMetric,
|
Type: counterMetric,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -951,7 +951,7 @@ func getRepReceivedBytesMD(namespace MetricNamespace) MetricDescription {
|
|||||||
Subsystem: replicationSubsystem,
|
Subsystem: replicationSubsystem,
|
||||||
Name: receivedBytes,
|
Name: receivedBytes,
|
||||||
Help: helpText,
|
Help: helpText,
|
||||||
Type: gaugeMetric,
|
Type: counterMetric,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3900,7 +3900,7 @@ func getWebhookMetrics() *MetricsGroupV2 {
|
|||||||
Subsystem: webhookSubsystem,
|
Subsystem: webhookSubsystem,
|
||||||
Name: webhookQueueLength,
|
Name: webhookQueueLength,
|
||||||
Help: "Webhook queue length",
|
Help: "Webhook queue length",
|
||||||
Type: counterMetric,
|
Type: gaugeMetric,
|
||||||
},
|
},
|
||||||
VariableLabels: labels,
|
VariableLabels: labels,
|
||||||
Value: float64(t.Stats().QueueLength),
|
Value: float64(t.Stats().QueueLength),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user