Closed jnogol closed 5 years ago
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.
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.