prometheus-pve-exporter fix

This commit is contained in:
chris 2025-03-19 20:26:30 +01:00
parent 6d3260e717
commit 32ea826a58
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak

View file

@ -46,16 +46,12 @@
forward_to = [prometheus.remote_write.default.receiver]
rule {
source_labels = [ __address__ ]
target_label = __param_target
}
rule {
source_labels = [ __param_target ]
target_label = instance
source_labels = [ "__param_target" ]
target_label = "instance"
}
rule {
target_label = __address__
replacement = "pve-exporter:9221"
target_label = "__address__"
replacement = "pve-exporter"
}
}
'';