-
Notifications
You must be signed in to change notification settings - Fork 0
/
grafana-agent.yaml
65 lines (64 loc) · 1.56 KB
/
grafana-agent.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
server:
log_level: debug
integrations:
agent:
enabled: true
relabel_configs:
- action: replace
source_labels:
- agent_hostname
target_label: instance
node_exporter:
enabled: true
relabel_configs:
- replacement: ${HOSTNAME}
target_label: instance
enable_collectors:
- systemd
systemd_unit_include: validator.service
process_exporter:
enabled: true
relabel_configs:
- replacement: ${HOSTNAME}
target_label: instance
process_names:
- name: validator-engine
cmdline:
- /usr/bin/ton/validator-engine/validator-engine
prometheus_remote_write:
- basic_auth:
password: ${PASSWORD}
username: ${USERNAME}
url: ${REMOTE_WRITE_URL}
- basic_auth:
password: ${PASSWORD}
username: ${USERNAME}
url: ${REMOTE_WRITE_URL_2}
metrics:
configs:
- name: integrations
scrape_configs:
- job_name: 'ton_decentralized_exporter'
static_configs:
- targets: ["localhost:8000"]
remote_write:
- basic_auth:
password: ${PASSWORD}
username: ${USERNAME}
url: ${REMOTE_WRITE_URL}
write_relabel_configs:
- replacement: ${HOSTNAME}
target_label: instance
- basic_auth:
password: ${PASSWORD}
username: ${USERNAME}
url: ${REMOTE_WRITE_URL_2}
write_relabel_configs:
- replacement: ${HOSTNAME}
target_label: instance
global:
external_labels:
environment: ${ENVIRONMENT}
role: ${ROLE}
scrape_interval: 15s
wal_directory: /tmp/grafana-agent-wal