prometheus: relabel to `instance`

This commit is contained in:
Motiejus Jakštys 2024-09-16 15:26:01 +03:00
parent 550d1c05e1
commit 8df4f79f0a
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ in
source_labels = [ "__address__" ]; source_labels = [ "__address__" ];
regex = "${myData.hosts.${hostname}.jakstIP}:${port}"; regex = "${myData.hosts.${hostname}.jakstIP}:${port}";
replacement = "${hostname}:${port}"; replacement = "${hostname}:${port}";
target_label = "__address__"; target_label = "instance";
}) hosts; }) hosts;
static_configs = [ static_configs = [
{ {