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.

Create simple endpoint for health checking

See original GitHub issue

Health checking / or /metrics doesn’t like a very good idea, especially when dealing with large cluster that contain many keyspaces and data.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
deimosfrcommented, Jun 28, 2018

/health should just say the exporter is working properly (print “ok” if everything is fine)

0reactions
erebecommented, Jun 28, 2018

Won’t do it as :

  1. Adding a new endpoint will be complicated, as for now the http server is embeded in the prometheus library and I don’t have access to it at the level of the app
  2. I feel the /health endpoint is redundant (but I may be biased due to the point 1) as you can do HEAD request or use the filtering feature to get a simple /health without any impacts on the app

As always, PR are welcome 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implement health check APIs for microservices - IBM
A health check API quickly returns the operational status of your microservice and indicates its ability to connect to dependent services.
Read more >
A guide to API health check - Testfully
Health checks can test APIs dependencies, such as databases and external service endpoints, to confirm availability and normal functioning.
Read more >
REST API Design: Health Check Endpoint - eloquent code
REST API Design: Health Check Endpoint. A health-check or simply health endpoint can be very useful for testing and inspecting a running API ......
Read more >
How to implement Health Checks API in Microservices ...
Solution. Each service has a health check API endpoint(e.g HTTP /health) that returns the status of service (Healthy/Unhealthy/Degraded).
Read more >
Pattern: Health Check API - Microservice Architecture
A health check client - a monitoring service, service registry or load balancer - periodically invokes the endpoint to check the health of...
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