Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uppanic on unknown family type #2319
Comments
This comment has been minimized.
This comment has been minimized.
|
This happens if the enum in the protobuf has an invalid value. Could happen due to data corruption, so I guess we should not panic but return an error so that callers can handle it. That has to happen in the prometheus/common repo. I have filed prometheus/common#72 for it. |
beorn7
closed this
Jan 5, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
mberhault commentedJan 4, 2017
What did you do?
running prometheus as usual against ~50 targets
What did you expect to see?
working properly. This looks transient (no binary changes/upgrades/etc... around the time of crash). It did not occur again, so this is not a persistent bad metric on our side.
I'm not sure there's much to do here, but a bit more information in the panic message would be helpful, at the very least, a "%v" of the bad value to help debug. With plumbed-in context (a lot more work), you would surface the target being processed too.
What did you see instead? Under which circumstances?
prometheus crashed with:
After restarting, prometheus entered recovery mode, then resumed as usual, no further crashes (so far).
Environment
N/A
prometheus is invoked with:
Alertmanager configuration file:
N/A
Logs:
prometheus log: the DNS warnings are due to some odd Azure DNS setup. Had to override resolve.conf force TCP DNS resolution, but it still tries UDP for some reason.
The crashed occurred about a minute after the last DNS warning.
supervisor logs showing start/stop time: