Skip to content
New issue

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

Prometheus overwrites log file when restarted #21

Closed
1 task done
jnogol opened this issue Feb 28, 2019 · 0 comments
Closed
1 task done

Prometheus overwrites log file when restarted #21

jnogol opened this issue Feb 28, 2019 · 0 comments
Assignees
Labels

Comments

@jnogol
Copy link
Collaborator

jnogol commented Feb 28, 2019

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

  1. Watch prometheus.log file.
  2. Restart Prometheus with systemctl restart prometheus.service
  3. Watch prometheus.log file.

Expected behavior: See both restarts.

Actual behavior: Only last restart appears.

Reproduces how often: Always

Versions

All.

@jnogol jnogol added the bug label Feb 28, 2019
@jnogol jnogol self-assigned this Feb 28, 2019
jnogol pushed a commit that referenced this issue Feb 28, 2019
jnogol pushed a commit that referenced this issue Feb 28, 2019
@jnogol jnogol mentioned this issue Mar 8, 2019
@jnogol jnogol closed this as completed Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant