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 1 commit 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, adding a new metric to be an Histogram so we can capture the highs and lows. The old one will be deprecated one we migrate all graphs to use the new one

@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
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, adding
a new metric as an histogram so we maintain compat until deprecating the old
gauge one
@hspedro hspedro force-pushed the refactor/agent-buffer-msg-metric branch from 8fb20e7 to b731857 Compare January 22, 2025 17:17
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.

2 participants