nix(loki): use variable for hostname in prometheus
This commit is contained in:
parent
6f4a415650
commit
b38bdf3e0a
@ -182,14 +182,14 @@
|
|||||||
static_configs = [
|
static_configs = [
|
||||||
{
|
{
|
||||||
targets = [
|
targets = [
|
||||||
"loki.local:${toString config.services.prometheus.exporters.node.port}"
|
"${config.networking.hostName}.local:${toString config.services.prometheus.exporters.node.port}"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "coredns";
|
job_name = "coredns";
|
||||||
static_configs = [{targets = ["loki.local:9153"];}];
|
static_configs = [{targets = ["${config.networking.hostName}.local:9153"];}];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user