Commit 9327b9a2 authored by Your Name's avatar Your Name

prometheus data

parent 57b9838f
...@@ -8,6 +8,7 @@ services: ...@@ -8,6 +8,7 @@ services:
- "9090:9090" - "9090:9090"
command: command:
- --config.file=/etc/prometheus/prometheus.yml - --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=./data/prometheus"
volumes: volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on: depends_on:
......
...@@ -200,7 +200,8 @@ echo " container_name: prometheus" >> $composefile ...@@ -200,7 +200,8 @@ echo " container_name: prometheus" >> $composefile
echo " ports:" >> $composefile echo " ports:" >> $composefile
echo " - \"9000:9090\"" >> $composefile echo " - \"9000:9090\"" >> $composefile
echo " command:" >> $composefile echo " command:" >> $composefile
echo " - --config.file=/etc/prometheus/prometheus.yml" >> $composefile echo " - --config.file=/etc/prometheus/prometheus.yml" >> $composefile
echo " - --storage.tsdb.path=./data/prometheus" >> $composefile
echo " volumes:" >> $composefile echo " volumes:" >> $composefile
echo " - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro" >> $composefile echo " - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro" >> $composefile
echo " depends_on:" >> $composefile echo " depends_on:" >> $composefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment