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 upAlerting rules docs reference $labels, but only .Labels appear to work #4859
Comments
This comment has been minimized.
This comment has been minimized.
|
I should have added, once I changes $labels to .Labels, it worked properly! Did this variable change names and the docs need updating? |
This comment has been minimized.
This comment has been minimized.
|
That's a YAML issue, try quoting the template string. |
This comment has been minimized.
This comment has been minimized.
|
You're right...sorry for the bad report! |
mkadin
closed this
Nov 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mkadin commentedNov 12, 2018
Bug Report
What did you do?
I set up a rule that looks like this:
What did you expect to see?
For this configuration to be valid, based on the docs at https://github.com/prometheus/prometheus/blob/master/docs/configuration/alerting_rules.md
What did you see instead? Under which circumstances?
Prometheus crashed on startup:
Environment
ubuntu 16.04
Prometheus configuration file:
see above
Alertmanager configuration file:
see above