keycloak-metrics-spi icon indicating copy to clipboard operation
keycloak-metrics-spi copied to clipboard

Keycloak Grafana Metrics to Show all instances report in one.

Open MerNat opened this issue 4 years ago • 4 comments

As of right now, Keycloak Grafana's metrics shows report based on instances (Retrieved from Prometheus gateway / cluster-based Keycloak instance). But, logically speaking instances come and go with time, thus it's better to give a cumulative report from all instances.

MerNat avatar Dec 30 '20 09:12 MerNat

For example, as you can see the instances here, most of them don't exist in my cluster. But for a statistics purpose, I wouldn't want to lose the data, and better if I can see only the name 'keycloak' that shows cumulative data retrieved from the instances. Screenshot (1)

MerNat avatar Dec 30 '20 09:12 MerNat

having the same issue. nodes come and go... so the ip's are becoming a mess. not sure what other options are available to solve this problem

olsonnn avatar Mar 02 '21 07:03 olsonnn

I suggest that it's better if anyone could help modify the Grafanas dashboard to only show cumulative data coming from multiple instances.

MerNat avatar Mar 02 '21 08:03 MerNat

@MerNat this sounds like an issue with the Grafana dashboard, not sure if there is an action on the SPI?

The Keycloak Operator uses its own dashboard, maybe you can give it a try: https://github.com/keycloak/keycloak-operator/blob/master/pkg/model/monitoring_constants.go#L3

pb82 avatar Mar 05 '21 12:03 pb82