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

Vector buffer metrics report negative values #21702

Open
namm2 opened this issue Nov 5, 2024 · 2 comments
Open

Vector buffer metrics report negative values #21702

namm2 opened this issue Nov 5, 2024 · 2 comments
Labels
domain: buffers Anything related to Vector's memory/disk buffers type: bug A code related bug.

Comments

@namm2
Copy link

namm2 commented Nov 5, 2024

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

I notice there are 50s (per 200ish total) of Vector Agent pods report negative values on the vector_buffer_events and vector_buffer_bytes_size. This issue only appears on one specific environment (GKE) and aren't seen on any other GKE clusters, which is confusing and also it'd cause the misfiring alerts because the value is le 0.

Configuration

Vector Agent configs of the sink:

  sinks:
    vector-aggregator:
      type: vector
      buffer:
        max_events: 50000

Version

0.39.0

Debug Output

No response

Example Data

# HELP vector_buffer_byte_size buffer_byte_size
# TYPE vector_buffer_byte_size gauge
...
vector_buffer_byte_size{buffer_type="memory",component_id="vector-aggregator",component_kind="sink",component_type="vector",host="vector-agent-zr6d8",stage="0"} -149552553 1730792799226
# HELP vector_buffer_events buffer_events
# TYPE vector_buffer_events gauge
...
vector_buffer_events{buffer_type="memory",component_id="vector-aggregator",component_kind="sink",component_type="vector",host="vector-agent-zr6d8",stage="0"} -49014 1730792799226

Additional Context

No response

References

No response

@namm2 namm2 added the type: bug A code related bug. label Nov 5, 2024
@pront pront added the domain: buffers Anything related to Vector's memory/disk buffers label Nov 5, 2024
@namm2
Copy link
Author

namm2 commented Nov 8, 2024

Update: The issue disappears when all the Vector Agent pods were restarted. I still don't know why the buffer metrics were negative in the first place.

@pront
Copy link
Contributor

pront commented Nov 8, 2024

Hi @namm2, thank you for reporting this bug.

This sounds like a difficult issue to triage. Do you have any more details share? Things like full configuration (sensitive data redacted), environment details, load, throughput etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: buffers Anything related to Vector's memory/disk buffers type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants