zzzming opened a new issue #10857: URL: https://github.com/apache/pulsar/issues/10857
**Describe the bug** A newly created topic's Prometheus metrics does not survive broker restarts. The topic is being created by pulsar_admin with no traffic nor subscription. `pulsar_topics_count` is not accurate after the broker restarts. **To Reproduce** 1. Create a persistent topic with pulsar-admin 2. Verify the topic's prometheus metrics exist under pulsar_in_bytes_total, pulsar_consumers_count, and a few others. 3. `pulsar_topics_count` is also incremented by 1 4. Restart the broker 5. After the broker has restarted, all metrics can be queried successfully. 6. However, the newly created topic's metrics are missing from the prometheus query. `pulsar_topics_count` is also reset to the number before the topic was created. **Expected behavior** The new created topic metrics survive the broker restarts. **Screenshots** n/a **Desktop (please complete the following information):** Tested on 2.7.2 **Additional context** Add any other context about the problem here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
