Add Prometheus counter and histogram for deletions during online GC
Sample:
# HELP registry_gc_delete_duration_seconds A histogram of latencies for artifact deletions during online GC.
# TYPE registry_gc_delete_duration_seconds histogram
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="0.005"} 0
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="0.01"} 1
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="0.025"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="0.05"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="0.1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="0.25"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="0.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="2.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="10"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="false",le="+Inf"} 2
registry_gc_delete_duration_seconds_sum{artifact="blob",backend="storage",error="false"} 0.03
registry_gc_delete_duration_seconds_count{artifact="blob",backend="storage",error="false"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="0.005"} 0
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="0.01"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="0.025"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="0.05"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="0.1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="0.25"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="0.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="2.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="10"} 2
registry_gc_delete_duration_seconds_bucket{artifact="blob",backend="storage",error="true",le="+Inf"} 2
registry_gc_delete_duration_seconds_sum{artifact="blob",backend="storage",error="true"} 0.02
registry_gc_delete_duration_seconds_count{artifact="blob",backend="storage",error="true"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="0.005"} 0
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="0.01"} 1
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="0.025"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="0.05"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="0.1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="0.25"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="0.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="2.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="10"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="false",le="+Inf"} 2
registry_gc_delete_duration_seconds_sum{artifact="manifest",backend="database",error="false"} 0.03
registry_gc_delete_duration_seconds_count{artifact="manifest",backend="database",error="false"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="0.005"} 0
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="0.01"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="0.025"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="0.05"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="0.1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="0.25"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="0.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="1"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="2.5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="5"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="10"} 2
registry_gc_delete_duration_seconds_bucket{artifact="manifest",backend="database",error="true",le="+Inf"} 2
registry_gc_delete_duration_seconds_sum{artifact="manifest",backend="database",error="true"} 0.02
registry_gc_delete_duration_seconds_count{artifact="manifest",backend="database",error="true"} 2
# HELP registry_gc_deletes_total A counter of artifacts deleted during online GC.
# TYPE registry_gc_deletes_total counter
registry_gc_deletes_total{artifact="blob",backend="storage"} 2
registry_gc_deletes_total{artifact="manifest",backend="database"} 2
Related to #293 (closed)
Edited by João Pereira