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:
parent
fd72a6d16e
commit
5457b9fba2
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ func StatusRequestsCounter(subsystem string) *prometheus.CounterVec {
|
||||||
Namespace: Namespace,
|
Namespace: Namespace,
|
||||||
Subsystem: subsystem,
|
Subsystem: subsystem,
|
||||||
Help: "total number of http requests",
|
Help: "total number of http requests",
|
||||||
}, []string{"method", "path", "code", "service"})
|
}, []string{"method", "path", "code", "subsystem"})
|
||||||
|
|
||||||
err := prometheus.Register(counter)
|
err := prometheus.Register(counter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue