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 upAlert labels are not changed after update rule file and reloading prometheus. #4571
Comments
krasoffski
changed the title
Alert rule labels are changed after updated rules file and reloading prometheus.
Alert rule labels are not changed after update rule file and reloading prometheus.
Sep 3, 2018
krasoffski
changed the title
Alert rule labels are not changed after update rule file and reloading prometheus.
Alert labels are not changed after update rule file and reloading prometheus.
Sep 3, 2018
This comment has been minimized.
This comment has been minimized.
|
This sounds like #4169. Can you try at master? |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil, thank you for quick replay. |
simonpasquier
added
component/rules
component/service discovery
kind/more-info-needed
and removed
component/service discovery
labels
Sep 4, 2018
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil am not able to get working configuration using Prometheus from master now (using the same configs and setups). BTW, will try to use build based on issue fix mentioned above (commit/cherry-pick instead of master). |
This comment has been minimized.
This comment has been minimized.
|
@krasoffski you're probably hitting #4551 (in short master is currently broken for SD). #4556 should fix it so you may want to build from there. |
Teriand
referenced this issue
Sep 25, 2018
Closed
Alert always update Active Since date to current time and cant fire #4652
This comment has been minimized.
This comment has been minimized.
|
Can you retest with the latest v2.4.2 release as it should be fixed now? |
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier thank you. I will try to retest issue and re-open defect in case of issue is still valid. |
This comment has been minimized.
This comment has been minimized.
|
Thanks @krasoffski |
krasoffski commentedSep 3, 2018
•
edited
Bug Report
/tmp/prometheus.ymlwith following content:/tmp/rule1and place alert rule template and also place this rule torule_filesdirectory with path
/tmp/rules/(from prometheus configuration file)./tmp/rule2and place alert rule template (notice different labels)rule.yamlwithin/tmp/rulesdirectory by rule from/tmp/rule2/rule.yaml, see step 7. This rule has the same group and alert names but different labels. Perform reload with command:What did you expect to see?

I expect to see json alert which contains new labels. UI shows correct labels but prometheus sends alert with old labels to alert manager.
What did you see instead? Under which circumstances?
I see alert with old labels instead of new ones which defined in the
/tmp/rule2/rule.yamlfile.Environment
System information:
Prometheus version:
Alertmanager version:
Did not use.
Prometheus configuration file:
Please, see above.