Open joschi36 opened 2 years ago
Possible to add new metrics https://github.com/apache/cloudstack/pull/4438
@NuxRo can you have a look at this? It seems to me the healthcheck output is a bit much for a prometheus interface. But if we feel it is reasonable ...
ISSUE TYPE
COMPONENT NAME
API, VR
CLOUDSTACK VERSION
But after my research, not available in current versions.
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
SUMMARY
For monitoring of Virtual Routers, there seems to be no way of having the health check results in Prometheus metrics endpoint.
Currently, we are querying health check results with a pull based method for every Virtual Router, that is really inefficient on a large scale of routers.
STEPS TO REPRODUCE
/metrics
endpointEXPECTED RESULTS
Have VR health check metrics exported at the
/metrics
endpoint.I thought of something like this, according to the current output of
getRouterHealthCheckResults
:Maybe this is not 100% accurate to OpenMetrics, but I tried to follow the guidelines. Maybe somebody with more knowledge can have a look.
A drawback with this solution would be that we lose information of the check result message, as Prometheus is not designed to handle this.
ACTUAL RESULTS
Virtual Router Health Checks not present on the CloudStack Prometheus metrics endpoint