Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nats_stream_total_messages grows, but no other metric follows it #244

Open
hpdobrica opened this issue Aug 15, 2023 · 1 comment
Open

nats_stream_total_messages grows, but no other metric follows it #244

hpdobrica opened this issue Aug 15, 2023 · 1 comment

Comments

@hpdobrica
Copy link

Hello, I was tracking nats_stream_total_messages metric for one stream, which usually grows and falls together with nats_consumer_num_pending metric in our system.

Sometimes it happens that nats_stream_total_messages grows a lot (until it fills up the whole stream), but no other metric I could find (except nats_stream_total_bytes) shows similar growth.

I've tried summing all of the metrics I found that seem to show number of messages for a stream:

  • nats_consumer_num_pending
  • nats_consumer_num_ack_pending
  • nats_consumer_num_redelivered
  • nats_consumer_num_waiting

but the sum of all these for one stream is below 1k, while nats_stream_total_messages is around 100k.

Is there a metric that i'm missing that could explain what these 100k messages are? This spike seems to only be observable in our system through nats_stream_total_messages and nats_stream_total_bytes.

Any ideas what I'm missing and how i can find out how to track these messages?

Thanks a lot for your help!

@somratdutta
Copy link

hey @hpdobrica,
let me know if this issue still persists, then I will investigate futher.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants