Suhas Karanth
07/21/2025, 7:19 AMRunLLM
07/21/2025, 7:19 AMexposeTopicLevelMetricsInPrometheus setting in the broker configuration; setting it to false will aggregate metrics at the namespace level, while true enables topic-level metrics, including partitioned topics. You can also split topic and partition labels for Prometheus metrics if needed.
For more details, see the configuration options in ServiceConfiguration.java and the discussion in this GitHub issue. Would you like more detail on how to configure or query these metrics?
Sources:
- ServiceConfiguration.java
- Make Topic Level Prometheus Metrics Optional ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.Suhas Karanth
07/21/2025, 7:22 AMexposeTopicLevelMetricsInPrometheus to false, it will emit metrics at namespace level which is not what I wantRunLLM
07/21/2025, 7:22 AMexposeTopicLevelMetricsInPrometheus to false emits metrics at the namespace level, not at the topic level. If you want metrics aggregated at the topic level (i.e., for the logical topic, not each partition), Pulsar does not natively aggregate partitioned topic metrics into a single topic-level metric; it emits metrics for each partition separately when exposeTopicLevelMetricsInPrometheus is trueย โย there is no built-in option to aggregate all partitions of a topic into a single topic-level metric in the Prometheus output.
For reference, see the behavior described in Pulsar metrics documentation and the configuration in ServiceConfiguration.java. Would you like more detail on possible workarounds or external aggregation?
Sources:
- Pulsar metrics documentation
- ServiceConfiguration.java ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.