-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Prometheus: Duplicated Timeseries in CollectorRegistry #83802
Comments
Hey there @knyar, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) prometheus documentation |
Thank you for reporting this. Looking at the code in question it seems that creating duplicate metrics should only be possible if Do you have a set of steps that I could use to reproduce this on a fresh Home Assistant instance? This would help investigating and fixing this. |
Hey @knyar, sorry I swear that this was continually repoing on my install, but I can't even seem to get it to happen again anymore. If I manage to get it to occur again I'll try to investigate further myself, but maybe it was just a transient issue. I say close the bug for now unless there's a reasonable way for you to handle it gracefully. Sorry for the randomization! Feel free to ping me for a PR in return for your time! |
If helpful, I've just been fiddling with home assistant and prometheus and ran into this. Might be relevant that the rpi running hass is not highly powered and there's a complaint from home assistant that "recorder" is taking time to start. Perhaps that's leading to to a timing issue? I did briefly see some values show up in prometheus so this can work... Logs from the nomadjob/container:
|
This seems like a duplicate of #80656. If someone would like to prepare a PR introducing locking, I'll be happy to review. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Prometheus is unexpectedly causing errors. This error is not actionable for the user so it's not clear what caused the problem or how to fix it.
What version of Home Assistant Core has the issue?
core-2022.12.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Prometheus
Link to integration documentation on our website
https://www.home-assistant.io/integrations/prometheus/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: