Skip to content

Keycloak metrics #3202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Keycloak metrics #3202

wants to merge 2 commits into from

Conversation

shaidar
Copy link
Contributor

@shaidar shaidar commented May 12, 2025

What are the relevant tickets?

#3119

Description (What does it do?)

This enables Keycloak metrics based on https://www.keycloak.org/observability/configuration-metrics. From a keycloak instance, I can load the results from the localhost:9000/metrics endpoint, however after adding the Grafana dashboards - https://www.keycloak.org/observability/grafana-dashboards, I'm not seeing any of the data in Grafana yet.

@shaidar shaidar requested review from blarghmatey and Ardiea May 12, 2025 19:28
@blarghmatey
Copy link
Member

This will require updating the Vector configuration for the Keycloak AMI to run a Prometheus metrics scrape against that endpoint. Prior art here: https://github.com/mitodl/ol-infrastructure/blob/main/src/bilder/images/concourse/templates/vector/concourse_metrics.yaml

@shaidar
Copy link
Contributor Author

shaidar commented May 12, 2025

@blarghmatey That already exists as we had a metrics endpoint using a separate spi

@blarghmatey
Copy link
Member

Copy that.

@Ardiea
Copy link
Member

Ardiea commented May 13, 2025

This ups our cardinality in CI by about 500% which is ... a lot. I'm going to add a vector config to drop the following metrics:
vendor_statistics_*{service="keycloak"}
http_server_requests_seconds_bucket{service="keycloak"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants