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

look up EnumAsInfo indexes in enum_values #559

Merged
merged 5 commits into from
Aug 31, 2020

Conversation

fredericve
Copy link
Contributor

Fixes #477

Adds the index enum_values in the generated snmp.yml file and then uses that to look it up during scrape.

Copy link
Contributor

@brian-brazil brian-brazil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks about right. It'll need unittests for both the generator and exporter.

config/config.go Outdated Show resolved Hide resolved
collector.go Outdated Show resolved Hide resolved
Signed-off-by: Frederic Van Espen <[email protected]>
Frederic Van Espen added 2 commits August 31, 2020 10:35
   * add generator test
   * reformat

Signed-off-by: Frederic Van Espen <[email protected]>
Signed-off-by: Frederic Van Espen <[email protected]>
Signed-off-by: Frederic Van Espen <[email protected]>
@fredericve
Copy link
Contributor Author

Added collector and generator tests. Can you verify if these are OK? I'm not entirely sure it's correct.

@brian-brazil brian-brazil merged commit d4dc10c into prometheus:master Aug 31, 2020
@brian-brazil
Copy link
Contributor

Thanks!

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.

EnumAsInfo panic
2 participants