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

Persist Prometheus after restart #43

Open
nodiesorg opened this issue Feb 18, 2023 · 0 comments
Open

Persist Prometheus after restart #43

nodiesorg opened this issue Feb 18, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nodiesorg
Copy link
Collaborator

  • What is the current behavior?
    Promethesus db and logs are not persisted after restart.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    Run promethesus, then restart it a couple minutes later.

  • What is the expected behavior?
    Metrics (timeseries db) should be persisted after restarting.

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

@IanC mentions that your docker-compose template should persist

--storage.tsdb.path=/prometheus
volumes:
      - ./prometheus/:/etc/prometheus/

need to add the volume or move the tsdb.path
image

@nodiesorg nodiesorg added the bug Something isn't working label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants