metrics: update status metrics label

Openshift overrides the `service` label for
all metrics in the cluster. Update the label
from `service` to `subsystem` for the status
metrics query. This helps us differentiate
between requests from composer and the worker
server.
This commit is contained in:
Gianluca Zuccarelli 2022-12-01 17:22:12 +00:00 committed by Sanne Raymaekers
parent fd72a6d16e
commit 5457b9fba2

View file

@ -14,7 +14,7 @@ func StatusRequestsCounter(subsystem string) *prometheus.CounterVec {
Namespace: Namespace,
Subsystem: subsystem,
Help: "total number of http requests",
}, []string{"method", "path", "code", "service"})
}, []string{"method", "path", "code", "subsystem"})
err := prometheus.Register(counter)
if err != nil {