aerogear / keycloak-metrics-spi

Adds a Metrics Endpoint to Keycloak
Apache License 2.0
551 stars 156 forks source link

Keycloak Grafana Metrics to Show all instances report in one. #91

Open MerNat opened 3 years ago

MerNat commented 3 years ago

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 commented 3 years ago

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)

olsonnn commented 3 years ago

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

MerNat commented 3 years ago

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

pb82 commented 3 years ago

@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