Created
July 16, 2020 04:23
-
-
Save DeathPoem/7dcc877c85f6238d5e38f9be73e6edc3 to your computer and use it in GitHub Desktop.
how to Change storage.tsdb.retention on Docker Hub "prom/prometheus"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM prom/prometheus | |
CMD ["--config.file=/etc/prometheus/prometheus.yml","--storage.tsdb.path=/prometheus","--web.console.libraries=/usr/share/prometheus/console_libraries","--web.console.templates=/usr/share/prometheus/consoles","--storage.tsdb.retention.size=100GB"] | |
# docker build --tag 'prom/prometheus:myprom' . | |
# docker run --network=host -v /$path/prometheus.yml:/etc/prometheus/prometheus.yml -v /export/Prometheus:/prometheus -d prom/prometheus:myprom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment