-
Notifications
You must be signed in to change notification settings - Fork 25
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
network_ups_tools_ups_status metric is missing when using NUT_EXPORTER_VARIABLES #52
Comments
I think I figured it out: the variables need to be in alphabetical order. Tested on my container with this as the env variable: |
Hey there, @maybesheforgot - thanks for sharing this. At first blush, alphabetical order or not sounds like it should be irrelevant. I'll take a look to see if anything stands out. I'm curious how you landed on this solution? What other permutations did you try that ultimately led here? |
Circling back - I'm able to see the expected status metrics if I use Either way, I just pushed a new commit that will issue a warning on startup if |
Ah, must’ve been coincidental then @DRuggeri. I was looking at the values from another NUT exporter utility I had running on my machine and all the values were listed alphabetically. And since that was what stood out compared to the way they were randomly listed by @varac, I figured that might be why. I want to say I originally only tested a few variables alphabetically at first, but it’s possible ups.status was among those in the test. Thanks for following up and further clarifying this! |
Sorry for the late feedback. I can now export all important metrics thanks to @maybesheforgot ! |
I am using this
docker-compose.yaml
file:Everything work fine, the metrics
network_ups_tools_ups_status
is returned for different lables.But I'd like to get the content of more variables, so I set:
With this, the metric
network_ups_tools_ups_status
is missing completely.How can I get more variables and have still the
network_ups_tools_ups_status
metric ?The text was updated successfully, but these errors were encountered: