forked from sichoi42/prometheus_grafana_quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.yml
48 lines (42 loc) · 1.38 KB
/
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
40
41
42
43
44
45
46
47
48
## prometheus.yml
rule_files:
- "rules/*.yml"
global:
scrape_interval: 10s
evaluation_interval: 5s
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "%%PM_SPRING_ACTUATOR_JOB_NAME%%"
metrics_path: "%%PM_SPRING_ACTUATOR_METRICS_PATH%%"
static_configs:
- targets: ["%%PM_SPRING_ACTUATOR_TARGET_DEV_URL%%"]
labels:
instance: "%%PM_SPRING_ACTUATOR_TARGET_DEV_LABEL_INSTANCE%%"
group: dev
- targets: ["%%PM_SPRING_ACTUATOR_TARGET_PROD_URL%%"]
labels:
instance: "%%PM_SPRING_ACTUATOR_TARGET_PROD_LABEL_INSTANCE%%"
group: prod
- job_name: "%%PM_NODE_EXPORTER_JOB_NAME%%"
metrics_path: "%%PM_NODE_EXPORTER_METRICS_PATH%%"
static_configs:
- targets: ["%%PM_NODE_EXPORTER_TARGET_ADMIN_URL%%"]
labels:
instance: "%%PM_NODE_EXPORTER_TARGET_ADMIN_LABEL_INSTANCE%%"
group: admin
- targets: ["%%PM_NODE_EXPORTER_TARGET_DEV_URL%%"]
labels:
instance: "%%PM_NODE_EXPORTER_TARGET_DEV_LABEL_INSTANCE%%"
group: dev
- targets: ["%%PM_NODE_EXPORTER_TARGET_PROD_URL%%"]
labels:
instance: "%%PM_NODE_EXPORTER_TARGET_PROD_LABEL_INSTANCE%%"
group: prod
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets:
- "alertmanager:9093"