aerogear / keycloak-metrics-spi

Adds a Metrics Endpoint to Keycloak
Apache License 2.0
530 stars 152 forks source link

Huge number of keycloak_request_duration_bucket entries #64

Closed michaelknurr closed 4 years ago

michaelknurr commented 4 years ago

Description

After installing the metrics-spi, we saw a huge number of keycloak_request_duration_bucket entries in blocks of 11 entries fro every single user. Since we have a high number of users, the metrics page takes forever to load.

Expected Behavior

Reduce size and load time of the metrics page to a reasonable value.

Actual Behavior

The total size of the metrics page is more than 300 MB (!!!)

Environment

Standalone Keycloak v3.4.2

Steps to reproduce

Open metrics page.

pb82 commented 4 years ago

@michaelknurr Ok, that's definitely excessive. We should probably exclude some endpoints from recording (e.g. the user endpoints).