-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-prometheus1.yml
40 lines (40 loc) · 1.16 KB
/
docker-compose-prometheus1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
prometheus-node1:
image: prom/prometheus:v2.31.0
container_name: prometheus-node1
volumes:
- ./prometheus/node1/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/node1/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.min-block-duration=1m'
- '--storage.tsdb.max-block-duration=1m'
- '--storage.tsdb.retention.time=5m'
ports:
- "9090:9090"
networks:
- net-prometheus1
thanos-sidecar1:
image: raspbernetes/thanos:v0.23.1
container_name: thanos-sidecar1
volumes:
- ./prometheus/node1/data:/var/prometheus
- ./thanos/bucket_config.yaml:/bucket_config.yaml
command:
- sidecar
- --tsdb.path=/var/prometheus
- --prometheus.url=http://prometheus-node1:9090
- --objstore.config-file=/bucket_config.yaml
- --http-address=0.0.0.0:19191
- --grpc-address=0.0.0.0:19090
ports:
- "19191:19191"
- "19090:19090"
networks:
- net-prometheus1
depends_on:
- prometheus-node1
networks:
net-prometheus1:
driver: bridge