question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keycloak Qarkus Support

See original GitHub issue

Description

Trying to add metrics to Keycloak. Followed the instructions, it would seem the service provider is not loaded by Keycloak. Tried with widfly keycloak and that works.

Expected Behavior

Expect metrics in endpoint <url>/auth/realms/<realm>/metrics

Actual Behavior

Curl to <url>/auth/realms/<realm>/metrics results in 404

Environment

  • Operating system: Mac OS host, keycloak deployed Docker running on Ubuntu 18.04
  • Keycloak: 17 (quarkus)

Steps to reproduce

  1. Download latest version .jar, at the time of this writing it is 2.5.3
  2. Copy it to the container on /opt/keycloak/standalone/deployments/. Tried it out on build and runtime (just in case)
  3. Set the name with .dodeploy
  4. Start Keycloak

If there is anything else you need, please let me know. If I find something from the Quarkus side, I’ll make sure to also share it here.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fredericoschardongcommented, Apr 11, 2022

It was not my entire Dockerfile. The solution was to include the file on the second stage, which I was missing.

Thank you @raul-verdi !

1reaction
laurent-treebcommented, Apr 4, 2022

@raul-verdi : have you enable the events listener in the realm where you want to have metrics ?

https://github.com/aerogear/keycloak-metrics-spi#enable-metrics-listener-event

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using OpenID Connect (OIDC) and Keycloak to Centralize ...
The quarkus-keycloak-authorization extension is based on quarkus-oidc and provides a policy enforcer that enforces access to protected resources based on ...
Read more >
Migrating to Quarkus distribution - Keycloak
To use the Quarkus distribution on Kubernetes and OpenShift you need to use the new Operator, the old Operator does not support the...
Read more >
Getting started with Keycloak powered by Quarkus
Keycloak is an Identity Provider that enables you to secure your Web applications by providing Single Sign-On (SSO) capabilities and leveraging ...
Read more >
Keycloak with Quarkus: Better together | Novatec
It acts as an identity provider supporting standards like OAuth, OpenID Connect, and SAML 2.0. · Keycloak provides local user storage and ...
Read more >
Quarkus & Keycloak Authentication - How to join both worlds ...
How to secure your Quarkus service with proper authentication by Keycloak. In this video I'll show you how to secure your endpoints for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found