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

SNMP: Missing chart dimension algorithm defaults dimension to 'absolute' #13315

Closed
luisj1983 opened this issue Jun 30, 2022 · 2 comments · Fixed by netdata/go.d.plugin#737
Closed
Assignees
Labels
area/collectors Everything related to data collection collectors/go.d feature request New features

Comments

@luisj1983
Copy link
Contributor

Using the SNMP Go module, if I specify a single chart with two dimensions and specify the algorithm to be used in the first dimension to be 'incremental' but omit the algorithm for the second dimension then the second dimension defaults to 'absolute'.

If you run the SNMP in debug mode then it will show the algorithm as empty: ''
This should show what the actual running value is, such as in this case 'absolute'.

Can we either:

  1. If no algorithm is set for a dimension then we inherit the algorithm in any dimension that is specified; if there are multiple different algorithms then just default to the absolute algorithm.
  2. When running the SNMP module in debug mode can we ensure that we output the actual algorithm used in cases where a default/fallback is being implemented.
@ilyam8
Copy link
Member

ilyam8 commented Jun 30, 2022

I think the correct way is to choose the algorithm based on a metric type if not set (e.g. incremental when Counter).

@luisj1983
Copy link
Contributor Author

Either way works for me so long as we actually print he running values in the debug output instead of displaying and empty value; having two differing values side-by-side, so to speak, would make it far more obvious to troubleshoot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection collectors/go.d feature request New features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants