modified: monitoring/base/alloy/node-scraper/config.alloy
This commit is contained in:
1 parent
51d7b38637
commit
6cd6880c5e
1 file changed
+2
-2
@@ -150,7 +150,7 @@ discovery.relabel "kube_pod_logs" {
|
|||||||
// Metrics: Prometheus connection config
|
// Metrics: Prometheus connection config
|
||||||
// ============================================
|
// ============================================
|
||||||
|
|
||||||
prometheus.remote_write "metrics_service" {
|
prometheus.remote_write "prometheus_srv" {
|
||||||
endpoint {
|
endpoint {
|
||||||
url = sys.env("PROMETHEUS_URL")
|
url = sys.env("PROMETHEUS_URL")
|
||||||
}
|
}
|
||||||
@@ -203,7 +203,7 @@ prometheus.scrape "node_exporter" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
prometheus.relabel "node_exporter" {
|
prometheus.relabel "node_exporter" {
|
||||||
forward_to = [prometheus.remote_write.metrics_service.receiver]
|
forward_to = [prometheus.remote_write.prometheus_srv.receiver]
|
||||||
|
|
||||||
rule {
|
rule {
|
||||||
action = "replace"
|
action = "replace"
|
||||||
|
|||||||
Reference in new issue
Block a user