-
Notifications
You must be signed in to change notification settings - Fork 8
/
prometheus-emqx5.yaml
83 lines (82 loc) · 2.23 KB
/
prometheus-emqx5.yaml
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
75
76
77
78
79
80
81
82
83
global:
scrape_interval: 10s
scrape_configs:
- job_name: 'emqx'
metrics_path: /api/v5/prometheus/stats
scrape_interval: 5s
honor_labels: true
static_configs:
# a list of addresses of all EMQX nodes
- targets: [emqx-demo:18083]
labels:
# label the cluster name of where the metrics data from
cluster: test
# fix value, don't modify
from: emqx
relabel_configs:
- source_labels: [ "__address__" ]
target_label: "instance"
regex: (.*):.*
replacement: $1
- job_name: 'exporter'
metrics_path: /metrics
scrape_interval: 5s
static_configs:
- targets: [exporter-demo:8085]
labels:
# label the cluster name of where the metrics data from
cluster: test
# fix value, don't modify
from: exporter
- job_name: 'mqtt-probe'
metrics_path: '/probe'
params:
target:
- "emqx-demo:1883"
scrape_interval: 5s
static_configs:
- targets: [exporter-demo:8085]
labels:
# label the cluster name of where the metrics data from
cluster: test
# fix value, don't modify
from: probe
- job_name: 'mqtts-probe'
metrics_path: '/probe'
params:
target:
- "emqx-demo:8883"
scrape_interval: 5s
static_configs:
- targets: [exporter-demo:8085]
labels:
# label the cluster name of where the metrics data from
cluster: test
# fix value, don't modify
from: probe
- job_name: 'ws-probe'
metrics_path: '/probe'
params:
target:
- "emqx-demo:8083/mqtt"
scrape_interval: 5s
static_configs:
- targets: [exporter-demo:8085]
labels:
# label the cluster name of where the metrics data from
cluster: test
# fix value, don't modify
from: probe
- job_name: 'wss-probe'
metrics_path: '/probe'
params:
target:
- "emqx-demo:8084/mqtt"
scrape_interval: 5s
static_configs:
- targets: [exporter-demo:8085]
labels:
# label the cluster name of where the metrics data from
cluster: test
# fix value, don't modify
from: probe