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

Make agent warn about possibly misconfigured gauge/counter #32

Open
bsmid opened this issue Jan 14, 2019 · 0 comments
Open

Make agent warn about possibly misconfigured gauge/counter #32

bsmid opened this issue Jan 14, 2019 · 0 comments

Comments

@bsmid
Copy link
Contributor

bsmid commented Jan 14, 2019

One common source of issues in newly created integrations is a mix-up between counter and gauge types. Since agent is processing live data, it could also warn of the cases where:

  • metric was defined as a gauge, but in reality it should be a counter - Agent can notice cases like this one if particular metric is behaving like a cumulative (it is always either staying the same or increasing)
  • metric was defined as a counter, but in reality it is more likely it is a gauge - in this case behavior is opposite from the one described in previous point - metric goes in all directions (up, down, stays the same)

In both cases observation has to be done at the source (not in agent's output) and over prolonged period of time (it is not enough to take just few consecutive measurements).

This tracking logic should most likely be enabled only in DEBUG mode (or some newly introduced testing mode) as it will have its own overhead.

Agent should print what it finds into the log.

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

1 participant