broker icon indicating copy to clipboard operation
broker copied to clipboard

promtool check metrics inconsistencies in "internal" metrics

Open awelzel opened this issue 3 years ago • 1 comments

Running promtool check metrics for the broker / caf generated Prometheus metrics indicates some conventions are not adhered to.

$ curl -sf http://localhost:4242/metrics | promtool check metrics
broker_processed_elements counter metrics should have "_total" suffix
caf_system_queued_messages_total non-counter metrics should not have "_total" suffix
process_cpu_seconds_total non-counter metrics should not have "_total" suffix

process_cpu_seconds_total could just be switched to a counter. Not sure about the semantics of caf_system_queued_messages_total (gauge vs counter). Might also be just a type difference.

awelzel avatar Jul 05 '22 13:07 awelzel

The metrics that come from CAF code (the process metrics also come from CAF) probably need to wait for CAF 0.19, the Broker metric I can update right away.

Neverlord avatar Jul 05 '22 13:07 Neverlord