-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 1.26 KB
/
docker-compose.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
41
version: '3.4'
services:
prometheus:
image: prom/prometheus:v2.40.0
command:
- --config.file=/etc/prometheus/prometheus.yml
- --log.level=error
- --storage.tsdb.path=/prometheus
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
- --enable-feature=native-histograms
- --enable-feature=exemplar-storage
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-1-data:/prometheus
ports:
- 9090:9090
prometheus2:
image: prom/prometheus:v2.40.0
command:
- --config.file=/etc/prometheus/prometheus.yml
- --log.level=error
- --storage.tsdb.path=/prometheus
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
- --enable-feature=exemplar-storage
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-2-data:/prometheus
ports:
- 9091:9090
native-demo:
image: songjiayang/native-histogram-demo:v0.1.0
ports:
- 8080:8080
command:
- --native-factor=1.5
- --metrics-count=10
volumes:
prometheus-1-data:
prometheus-2-data: