Skip to content
Snippets Groups Projects
Commit 42bc6bb0 authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'L2SS-536-extend-prometheus-retention' into 'master'

L2SS-536: Extend prometheus retention, and keep the monitoring data between container restarts

Closes L2SS-536

See merge request !198
parents 087f29ca 66e86f65
Branches
Tags
1 merge request!198L2SS-536: Extend prometheus retention, and keep the monitoring data between container restarts
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
version: '2' version: '2'
volumes:
prometheus-data: {}
services: services:
prometheus: prometheus:
image: prometheus image: prometheus
...@@ -15,6 +18,8 @@ services: ...@@ -15,6 +18,8 @@ services:
container_name: ${CONTAINER_NAME_PREFIX}prometheus container_name: ${CONTAINER_NAME_PREFIX}prometheus
networks: networks:
- control - control
volumes:
- prometheus-data:/prometheus
ports: ports:
- "9090:9090" - "9090:9090"
logging: logging:
......
FROM prom/prometheus FROM prom/prometheus
COPY prometheus.yml /etc/prometheus/prometheus.yml COPY prometheus.yml /etc/prometheus/prometheus.yml
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.time=31d"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment