You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When calling the metrics endpoint I would expect them to be grouped by type. However, some metrics are grouped under the incorrect type header
To Reproduce
Steps to reproduce the behavior:
Run Pulsar v2.6.0
Fire some messages to topics
Access metrics endpoint
See error
Expected behavior
All metrics are grouped appropriately.
Screenshots
Desktop (please complete the following information):
@marksilcox The broker just expose the Prometheus formatted metrics, if you want to do some aggregate calculations, it's better to achieve at the Prometheus.
@codelipenghui I am not wanting to aggregate. As you can see from the screenshot, some metrics are not being grouped under their # TYPE header. See # TYPE pulsar_msg_backlog gauge header, under that I can see 9 other metrics not related to that header. This happens in a few other places and metrics are scattered across the output.
Activity
codelipenghui commentedon Nov 2, 2020
@marksilcox The broker just expose the Prometheus formatted metrics, if you want to do some aggregate calculations, it's better to achieve at the Prometheus.
marksilcox commentedon Nov 2, 2020
@codelipenghui I am not wanting to aggregate. As you can see from the screenshot, some metrics are not being grouped under their
# TYPEheader. See# TYPE pulsar_msg_backlog gaugeheader, under that I can see 9 other metrics not related to that header. This happens in a few other places and metrics are scattered across the output.Prometheus docs states "All lines for a given metric must be provided as one single group" - https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md#grouping-and-sorting
[fix][broker][functions-worker] Ensure prometheus metrics are grouped…
[fix][broker][functions-worker] Ensure prometheus metrics are grouped…
[fix][broker][functions-worker] Ensure prometheus metrics are grouped…
Revert "[fix][broker][functions-worker] Ensure prometheus metrics are…
[fix][broker][functions-worker] Ensure prometheus metrics are grouped…