We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Due to the ">" in https://github.com/idealista/prometheus_server-role/blob/master/templates/prometheus.service.j2#L11, every time Prometheus is restarted it overwrites prometheus.log. It should be replaced with ">>" so it appends the new output to the previous log file.
prometheus.log
systemctl restart prometheus.service
Expected behavior: See both restarts.
Actual behavior: Only last restart appears.
Reproduces how often: Always
All.
The text was updated successfully, but these errors were encountered:
#21 Don't overwrite log file after (re)start
17a5a4c
#21 Update Changelog
8102cb6
jnogol
No branches or pull requests
Prerequisites
Description
Due to the ">" in https://github.com/idealista/prometheus_server-role/blob/master/templates/prometheus.service.j2#L11, every time Prometheus is restarted it overwrites
prometheus.log
. It should be replaced with ">>" so it appends the new output to the previous log file.Steps to Reproduce
prometheus.log
file.systemctl restart prometheus.service
prometheus.log
file.Expected behavior: See both restarts.
Actual behavior: Only last restart appears.
Reproduces how often: Always
Versions
All.
The text was updated successfully, but these errors were encountered: