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

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

parent d4804b37
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment