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 upPrometheus doesn't reload rule files obtained with glob #5125
Comments
This comment has been minimized.
This comment has been minimized.
|
Hmm, I can't reproduce the issue. Can you check the following metrics?
|
This comment has been minimized.
This comment has been minimized.
|
In the meantime, I restarted Prometheus to reload the rules. Logs
Metrics
|
This comment has been minimized.
This comment has been minimized.
|
Side information that may be relevant: the config file is passed in parameters with a full path (not local path) and the rules are placed relatively to the config file in |
This comment has been minimized.
This comment has been minimized.
|
Can you check the configuration output from the |
This comment has been minimized.
This comment has been minimized.
|
It is consistent with the config file:
|
This comment has been minimized.
This comment has been minimized.
|
And Docker with per-rule-file volumes isn't involved? Because if you mount a file (instead of a directory) as a volume into a container, changes to those files on the host do not become visible in the container until the container is restarted. |
This comment has been minimized.
This comment has been minimized.
|
It seems that sometimes it works and sometime it doesn't. Looking into the grafana dashboard, I see bumps in fds_count (x2) and query duration (x500). I close the issue since it is not related to the wildcards. |
michael-doubez
closed this
Feb 12, 2019
This comment has been minimized.
This comment has been minimized.
|
Thanks for the follow-up @michael-doubez! |
michael-doubez commentedJan 22, 2019
Bug Report
Rule files are not reloaded when modifying them or sending the HUP signal.
What did you do?
I configured multiple rule files in a directory:
The rules are correctly loaded at startup but when modifying them, they are not reloaded:
What did you expect to see?
Prometheus reloading the rule files and updating internal rules (as seen in GUI).
What did you see instead? Under which circumstances?
No trace of rule reload in logs and rules not updated in GUI
Environment
System information:
Linux 2.6.32-696.1.1.el6.x86_64 x86_64
Prometheus version:
prometheus, version 2.5.0 (branch: HEAD, revision: 67dc912)
build user: root@578ab108d0b9
build date: 20181106-11:40:44
go version: go1.11.1
Prometheus configuration file: