question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Partitioned topics stats doesn't appear in "pulsar-admin broker-stats topics" response until get the specific topic stats manually

See original GitHub issue

How 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:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
Technoboy-commented, Jul 1, 2022

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 the topics partitioned-stats.

1reaction
michaeljmarshallcommented, Jul 5, 2022

broker-stats will list the topics which are loaded by the current broker.

Note that this is also true for the /metrics endpoint, which is typically used for collecting prometheus metrics.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found