Add alloy/config.alloy
This commit is contained in:
parent
b3145410fd
commit
f26fc79744
23
alloy/config.alloy
Normal file
23
alloy/config.alloy
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// 1. Definiere, wo die Daten hin sollen (Dein zentraler Server)
|
||||||
|
prometheus.remote_write "central_grafana" {
|
||||||
|
endpoint {
|
||||||
|
url = "http://188.245.193.243:9090/api/v1/write"
|
||||||
|
// Falls du Auth nutzt:
|
||||||
|
// basic_auth {
|
||||||
|
// username = "user"
|
||||||
|
// password = "password"
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2. Node Exporter Scraper
|
||||||
|
prometheus.scrape "node_exporter" {
|
||||||
|
targets = [{"__address__" = "node-exporter:9100"}]
|
||||||
|
forward_to = [prometheus.remote_write.central_grafana.receiver]
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3. cAdvisor Scraper (Docker Container)
|
||||||
|
prometheus.scrape "cadvisor" {
|
||||||
|
targets = [{"__address__" = "cadvisor:8080"}]
|
||||||
|
forward_to = [prometheus.remote_write.central_grafana.receiver]
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user