Scrape web01 node_exporter into VictoriaMetrics
Add web01 to the mesh map and the node scrape job so it appears on the uptime/host dashboards alongside the other hosts.
This commit is contained in:
@@ -13,7 +13,13 @@ let
|
|||||||
readVar =
|
readVar =
|
||||||
machine: file: builtins.readFile "${dir}/vars/per-machine/${machine}/zerotier/${file}/value";
|
machine: file: builtins.readFile "${dir}/vars/per-machine/${machine}/zerotier/${file}/value";
|
||||||
|
|
||||||
hosts = lib.genAttrs [ "control" "ns1" "ns2" "mx1" ] (m: readVar m "zerotier-ip");
|
hosts = lib.genAttrs [
|
||||||
|
"control"
|
||||||
|
"ns1"
|
||||||
|
"ns2"
|
||||||
|
"mx1"
|
||||||
|
"web01"
|
||||||
|
] (m: readVar m "zerotier-ip");
|
||||||
|
|
||||||
# RFC 4193 prefix of this ZeroTier network: fd + the 8-byte network id + the
|
# RFC 4193 prefix of this ZeroTier network: fd + the 8-byte network id + the
|
||||||
# 0x9993 marker. The network id is a public var on the controller (control).
|
# 0x9993 marker. The network id is a public var on the controller (control).
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ in
|
|||||||
(target "ns1" (v6 mesh.hosts.ns1) 9100)
|
(target "ns1" (v6 mesh.hosts.ns1) 9100)
|
||||||
(target "ns2" (v6 mesh.hosts.ns2) 9100)
|
(target "ns2" (v6 mesh.hosts.ns2) 9100)
|
||||||
(target "mx1" (v6 mesh.hosts.mx1) 9100)
|
(target "mx1" (v6 mesh.hosts.mx1) 9100)
|
||||||
|
(target "web01" (v6 mesh.hosts.web01) 9100)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user