prometheus: relabel to instance
This commit is contained in:
parent
550d1c05e1
commit
8df4f79f0a
@ -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 = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user