Skip to content

Instantly share code, notes, and snippets.

@DeathPoem
Created July 16, 2020 04:23
Show Gist options
  • Save DeathPoem/7dcc877c85f6238d5e38f9be73e6edc3 to your computer and use it in GitHub Desktop.
Save DeathPoem/7dcc877c85f6238d5e38f9be73e6edc3 to your computer and use it in GitHub Desktop.
how to Change storage.tsdb.retention on Docker Hub "prom/prometheus"
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