-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.river
36 lines (33 loc) · 987 Bytes
/
linux.river
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
/********************************************
* GENERAL
********************************************/
logging {
level = "warn"
}
/********************************************
* UNIX METRICS
********************************************/
prometheus.exporter.unix {
}
/********************************************
* PROMETHEUS SCRAPE
********************************************/
prometheus.scrape "default" {
targets = prometheus.exporter.unix.targets
forward_to = [prometheus.remote_write.default.receiver ]
}
prometheus.scrape "agent" {
targets = [
{"__address__" = "127.0.0.1:12345", "app" = "grafana-agent"},
]
forward_to = [prometheus.remote_write.default.receiver]
scrape_interval = "10s"
}
/********************************************
* AGENT REMOTE WRITE
********************************************/
prometheus.remote_write "default" {
endpoint {
url = "http://192.168.188.8:9090/api/v1/write"
}
}