Add clarifying comment for histogram metric

Explain that the duration histogram tracks distribution of individual
job durations, not accumulated sums, to address reviewer concerns.

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
This commit is contained in:
Shubham Pampattiwar
2025-12-03 16:05:32 -08:00
parent 27ca08b5a5
commit 31fb828f8e

View File

@@ -83,6 +83,9 @@ const (
// repo maintenance metrics
repoMaintenanceSuccessTotal = "repo_maintenance_success_total"
repoMaintenanceFailureTotal = "repo_maintenance_failure_total"
// repoMaintenanceDurationSeconds tracks the distribution of maintenance job durations.
// Each completed job's duration is recorded in the appropriate bucket, allowing
// analysis of individual job performance and trending over time.
repoMaintenanceDurationSeconds = "repo_maintenance_duration_seconds"
// Labels