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 health check

See original GitHub issue

Describe the bug

How can I health check keycloak?

curl  http://localhost:8080/auth/realms/master/health/check
{"error":"HTTP 404 Not Found"}

I just curl like above but return resource not found, how do I ensure keycloak is healthy?

Version

17.0.0

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Anything else?

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
Abdelouaheddcommented, Sep 15, 2022

if you are using keycloak in docker, just set KC_HEALTH_ENABLED to true and you can check the health trow the URL http://localhost:8080/health/ready

0reactions
Wolfsrudelcommented, Mar 6, 2022

yes, it worked for me, just closed this ticket.

Please note that curl http://localhost:8080/auth/health depends on http-relative-path is /auth

As I’ve mentioned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling Keycloak Health checks
This guide describes how to enable and use the Keycloak health checks. Keycloak Health checks. Keycloak exposed health endpoints are three: /health.
Read more >
Health endpoint - Configuring the server - Keycloak Discourse
I'm using the last keycloak version, configured to expose /health endpoint according to https://github.com/keycloak/keycloak-community/blob/ ...
Read more >
Add endpoint for operational monitoring of server healt status
Just updated the keycloak-health-checks project: health checks for database, filesystem, infinispan; HealthIndicatorSpi for custom health checks. Works with ...
Read more >
Keycloak Health Check SPI Proposal - Google Groups
Those health checks usually cover the health information of the Keycloak instance overall. That's fine if you have only a single realm. Still, ......
Read more >
jrofurtado/keycloak-with-healthcheck Dockerfile - Docker Hub
FROM jboss/keycloak:8.0.1 HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 CMD curl --fail http://localhost:8080/auth/realms/master.
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