-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprometheus.yml
39 lines (36 loc) · 904 Bytes
/
prometheus.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
version: '2'
services:
prometheus:
image: prom/prometheus:v1.6.3
volumes:
- ./prometheus-conf/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '-config.file=/etc/prometheus/prometheus.yml'
- '-storage.local.path=/prometheus'
- '-alertmanager.url=http://alertmanager:9093'
expose:
- 9090
ports:
- 9090:9090
alertmanager:
image: prom/alertmanager:v0.6.2
ports:
- 9093:9093
volumes:
- ./alertmanager-conf/:/etc/alertmanager/
command:
- '-config.file=/etc/alertmanager/config.yml'
- '-storage.path=/alertmanager'
grafana:
image: grafana/grafana:4.3.2
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=jhipster
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
prometheus_data: {}
grafana_data: {}