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

[V2] refactor(agent): channel capacity as histogram #429

Open
wants to merge 3 commits into
base: v2
Choose a base branch
from

Conversation

hspedro
Copy link
Collaborator

@hspedro hspedro commented Dec 19, 2024

Problem

Connectors with agents reaching 0 capacity but metric still report as full capacity

Reason

Channel capacity is a metric of each agent, that is created in each handle so the capacity varies depending on the client/agent being used and we need to differentiate the lows/highs of each in the metric.

Solution

Adding a client label to the Gauge is not feasible, since it'd explode cardinality. Thus, changing the metric to be an Histogram so we can capture the highs and lows.

Channel capacity is a metric of each agent, that is created in each handle
so the capacity varies depending on the client/agent being used and we need
to differentiate the lows/highs of each in the metric. Adding a client label
to the Gauge is not feasible, since it'd explode cardinality. Thus, changing
the metric to be an Histogram so we can capture the highs and lows.
@hspedro hspedro self-assigned this Dec 19, 2024
@hspedro hspedro force-pushed the refactor/agent-buffer-msg-metric branch from d4b25db to 5b6d6d5 Compare December 19, 2024 14:25
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

Successfully merging this pull request may close these issues.

1 participant