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.

bookie_journal_JOURNAL_QUEUE_SIZE Prometheus metric is negative (Pulsar 2.6.1)

See original GitHub issue

Describe the bug The prometheus metric bookie_journal_JOURNAL_QUEUE_SIZE exposed by bookie is negative. Shouldn’t queue lengths be positive

To Reproduce

  1. Launch Pulsar on Kubernetes
  2. Inspect metrics endpoint of Bookkeeper
$ curl http://platform-pulsar-bookkeeper:8000/metrics | grep QUEUE_SIZE
# TYPE bookie_journal_JOURNAL_CB_QUEUE_SIZE counter
bookie_journal_JOURNAL_CB_QUEUE_SIZE 57253790
# TYPE bookie_journal_JOURNAL_FORCE_WRITE_QUEUE_SIZE counter
# TYPE bookie_journal_JOURNAL_QUEUE_SIZE counter
bookie_journal_JOURNAL_QUEUE_SIZE -57253790

Expected behavior Queue lengths are zero or above

Screenshots image

Additional context

  • Pulsar 2.6.1
  • Kafkaesque Helm Chart 1.0.24
  • Probably has not bearing but exposeTopicLevelMetricsInPrometheus is set to false as we have a lot of topics

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

michaeljmarshallcommented, Feb 23, 2021

bookie_journal_JOURNAL_CB_QUEUE_SIZE is positive (and almost the exact inverse value)

That’s a helpful observation. When I was looking through the code last night, I was wondering if there was any type of relationship between those two metrics.

frankjkellycommented, Feb 24, 2021

@michaeljmarshall Thanks so much for hunting this down. Closing this ticket . . . .

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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 Post

No results found

github_iconTop Related Hashnode Post

No results found