Prometheus comes with a custom Kubernetes resource called service monitor. This can be used to feed metrics from the metrics endpoint of the Curity Identity Server into Prometheus. By default I would specify this:
Writing an extra service label for all customers is what I've done so far, though I could change what I've done to derive from a new custom labels setting in the values file if reviewers prefer that option.
Prometheus comes with a custom Kubernetes resource called service monitor. This can be used to feed metrics from the metrics endpoint of the Curity Identity Server into Prometheus. By default I would specify this:
But this matches both Admin and Runtime services for each pod, causing metrics entries to be duplicated, and the data is wrong:
It feels like the only good way to solve this problem is via labels, which is the only option service monitors support:
Writing an extra service label for all customers is what I've done so far, though I could change what I've done to derive from a new
custom labels
setting in the values file if reviewers prefer that option.