-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprometheus.yml
74 lines (67 loc) · 2.07 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
global:
scrape_interval: 30s
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'qtw-monitor'
# A scrape configuration containing exactly one endpoint to scrape
scrape_configs:
# scrape prometheus metrics
- job_name: 'prometheus'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
# scrape grafana metrics
- job_name: 'grafana'
scrape_interval: 5s
static_configs:
- targets: ['grafana:3000']
# scrape traefik metrics
- job_name: 'traefik'
scrape_interval: 5s
static_configs:
- targets: ['traefik:8080']
# Scrape docker host metrics through node-exporter
- job_name: 'docker'
scrape_interval: 5s
static_configs:
- targets: ['node-exporter:9100']
relabel_configs:
- source_labels: [__address__]
regex: '.*'
target_label: instance
replacement: 'docker'
# Collect ping stats about some hosts with blackbox-exporter (icmp)
- job_name: qtw_ping
scrape_interval: 5s
metrics_path: /probe
params:
module: [icmp]
static_configs:
- targets:
- quadtreeworld.net
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter:9115
# Collect http stats using blackbox exporter with blackbox-exporter (http)
- job_name: qtw_http
metrics_path: /probe
scrape_interval: 30s
params:
module: [http_2xx]
static_configs:
- targets:
- 'https://www.quadtreeworld.net'
- 'https://www.quadtreeworld.net/api/resource-type'
- 'https://www.quadtreeworld.net/api/resource?type=dataset'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter:9115