File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,5 +12,7 @@ ENTRYPOINT ["/usr/local/bin/prometheus-entrypoint.sh"]
1212# Default command arguments (can be overridden in docker-compose)
1313CMD ["--storage.tsdb.path=/prometheus", \
1414 "--web.enable-admin-api", \
15- "--web.console.libraries=/usr/share/prometheus/console_libraries", \
16- "--web.console.templates=/usr/share/prometheus/consoles"]
15+ "--storage.tsdb.retention.time=15d", \
16+ "--storage.tsdb.retention.size=40GB", \
17+ "--web.console.libraries=/usr/share/prometheus/console_libraries", \
18+ "--web.console.templates=/usr/share/prometheus/consoles"]
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ services:
5252 - ' --storage.tsdb.path=/prometheus'
5353 - ' --web.console.libraries=/usr/share/prometheus/console_libraries'
5454 - ' --web.console.templates=/usr/share/prometheus/consoles'
55+ - ' --web.enable-admin-api'
56+ - " --storage.tsdb.retention.time=15d"
57+ - " --storage.tsdb.retention.size=40GB"
5558 extra_hosts :
5659 - " host.docker.internal:host-gateway"
5760 healthcheck :
You can’t perform that action at this time.
0 commit comments