forked from ceejaylaboratory/AnchorPoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml
More file actions
46 lines (40 loc) · 1.16 KB
/
Copy pathprometheus.yml
File metadata and controls
46 lines (40 loc) · 1.16 KB
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
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- /etc/prometheus/rules/prometheus-alerts.yml
alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager:9093
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'anchorpoint-backend'
static_configs:
- targets: ['backend:9464']
scrape_interval: 5s
metrics_path: '/metrics'
- job_name: 'anchorpoint-backend-metrics'
static_configs:
- targets: ['backend:3002']
scrape_interval: 5s
metrics_path: '/metrics'
# Synthetic health check for PagerDuty routing. This probes the API's /health
# endpoint independently of the application metrics scrape.
- job_name: 'anchorpoint-backend-health'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
- http://backend:3002/health
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter:9115