Skip to content

Commit b78d488

Browse files
committed
Enable webapi for prometheus
1 parent 7c820b2 commit b78d488

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

docker/Dockerfile.prometheus

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ ENTRYPOINT ["/usr/local/bin/prometheus-entrypoint.sh"]
1212
# Default command arguments (can be overridden in docker-compose)
1313
CMD ["--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"]

docker/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)