Monstache monitoring
hubornohub opened this issue · comments
hubornohub commented
Hi,
Currently I’m working on monitoring monstache. Although it has built-in http server but doesn’t expose metrics in Prometheus exposition format. So, I made use of promhttp go library and created custom metrics based on the endpoints like /healthz, /stats etc. But I have a bit confusion here:
- When does monstache go down? I mean when elastic cluster or mongodb going down, it doesn’t report anything. So, based on which condition can I say it’s unhealthy and test it out to create alerts.
- And also, unless I hit the endpoint /stats, Prometheus doesn’t fetch the metrics automatically. I want to know like am I doing something wrong here?
Erik Davtyan commented
Did you find a solution to know when Monstache goes down? The /healthz
endpoint always returns ok
with status code 200
.
Line 4207 in 6f03294