Merge branch 'version-2' into version-2
This commit is contained in:
commit
79321b1df6
@ -1,4 +1,4 @@
|
|||||||
version: '3.2'
|
version: '3.1'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
prometheus_data: {}
|
prometheus_data: {}
|
||||||
@ -11,7 +11,7 @@ networks:
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus
|
image: prom/prometheus:v2.0.0
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus/:/etc/prometheus/
|
- ./prometheus/:/etc/prometheus/
|
||||||
- prometheus_data:/prometheus
|
- prometheus_data:/prometheus
|
||||||
@ -38,15 +38,9 @@ services:
|
|||||||
node-exporter:
|
node-exporter:
|
||||||
image: prom/node-exporter
|
image: prom/node-exporter
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- /proc:/host/proc
|
||||||
source: /proc
|
- /sys:/host/sys
|
||||||
target: /host/proc
|
- /:/rootfs
|
||||||
- type: bind
|
|
||||||
source: /sys
|
|
||||||
target: /host/sys
|
|
||||||
- type: bind
|
|
||||||
source: /
|
|
||||||
target: /rootfs
|
|
||||||
command:
|
command:
|
||||||
- '--path.procfs=/host/proc'
|
- '--path.procfs=/host/proc'
|
||||||
- '--path.sysfs=/host/sys'
|
- '--path.sysfs=/host/sys'
|
||||||
|
@ -10,7 +10,7 @@ groups:
|
|||||||
severity: page
|
severity: page
|
||||||
annotations:
|
annotations:
|
||||||
summary: "Instance {{ $labels.instance }} down"
|
summary: "Instance {{ $labels.instance }} down"
|
||||||
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
|
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes."
|
||||||
|
|
||||||
- alert: high_load
|
- alert: high_load
|
||||||
expr: node_load1 > 0.5
|
expr: node_load1 > 0.5
|
||||||
@ -19,4 +19,4 @@ groups:
|
|||||||
severity: page
|
severity: page
|
||||||
annotations:
|
annotations:
|
||||||
summary: "Instance {{ $labels.instance }} under high load"
|
summary: "Instance {{ $labels.instance }} under high load"
|
||||||
description: "{{ $labels.instance }} of job {{ $labels.job }} is under high load."
|
description: "{{ $labels.instance }} of job {{ $labels.job }} is under high load."
|
@ -15,11 +15,13 @@ rule_files:
|
|||||||
# - "first.rules"
|
# - "first.rules"
|
||||||
# - "second.rules"
|
# - "second.rules"
|
||||||
|
|
||||||
|
# alert
|
||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- static_configs:
|
- scheme: http
|
||||||
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- alertmanager:9093
|
- "alertmanager:9093"
|
||||||
|
|
||||||
# A scrape configuration containing exactly one endpoint to scrape:
|
# A scrape configuration containing exactly one endpoint to scrape:
|
||||||
# Here it's Prometheus itself.
|
# Here it's Prometheus itself.
|
||||||
|
Loading…
Reference in New Issue
Block a user