Closed Mayukhdeb closed 2 years ago
[edit] Streamlined suggestion and moved unnecessarily rant to a different place.
Eden can benefit from a status
endpoint that returns a json - can be consumed by frontend for extended functionality.
But for operational reasons please also consider instrumenting with prometheus.
This will automatically create a simple http /metrics
http endpoint, that can be consumed as-is or scraped by prometheus, allowing basic timeseries visualisation and further integrations with cloud native products.
Update: we have exposed the some of these metrics via prometheus as seen here. The catch is that its exposed on /metrics
and not /health
. We can consider this issue to be fixed as of https://github.com/abraham-ai/eden/commit/c20af9b259f2c5b32d0f6856cfd158a253d03950
/health
could be a way to check the following metrics:There might be other useful metrics which I might be missing out, but the idea is to use these as a way to conditionally scale up/down in kubernetes.
This is how it could be:
would return:
cc: @genekogan @one1zero1one