Partitioned topics stats doesn't appear in "pulsar-admin broker-stats topics" response until get the specific topic stats manually
See original GitHub issueHow to reproduce
-
Create a partitioned topic
pulsar-admin topics create-partitioned-topic -p 2 persistent://public/default/prt-1
-
Wait for about a minute and try to get broker topics stats
pulsar-admin broker-stats topics -i | grep prt
You’ll get an empty output.
-
Now try to get the specific topic stats
pulsar-admin topics partitioned-stats persistent://public/default/prt-1
You’ll get the topic’s stats.
-
Wait for wait about a minute and try to get broker topics stats again.
pulsar-admin broker-stats topics -i | grep prt
You’ll get the topic’s stats now.
"persistent://public/default/prt-1-partition-1": { "persistent://public/default/prt-1-partition-0": {
Pulsar v2.10.0
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Managing partitioned topics - Apache Pulsar
You can create partitioned topics using the create-partitioned-topic command and specifying the topic name as an argument and the number of partitions using ......
Read more >Manage topics - Apache Pulsar
You can check the following statistics of a given non-partitioned topic. msgRateIn: The sum of all local and replication publishers' publish rates (msg/s)....
Read more >Pulsar admin CLI
The pulsar-admin tool enables you to manage Pulsar installations, including clusters, brokers, namespaces, tenants, and more. Usage. $ pulsar-admin command.
Read more >Manage topics - Apache Pulsar
You can check the current statistics of a given partitioned topic and its connected producers and consumers in the following ways. pulsar-admin; REST...
Read more >Pulsar Java client
You can use a Pulsar Java client to create the Java producer, consumer, readers and TableView of messages and to perform administrative tasks....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
broker-stats
will list the topics which are loaded by the current broker. So if you create the partitioned topic but without loading it (create producer/consumer), it can’t be listed. Even if you use thetopics partitioned-stats
.Note that this is also true for the
/metrics
endpoint, which is typically used for collecting prometheus metrics.