May 2019
Intermediate to advanced
442 pages
11h 36m
English
The following query allows us to augment the node_exporter_build_info metric with yet another label, called nodename, which has information regarding the hostname running your Node Exporter pod.
In this example, we have the following instant vector:
node_exporter_build_info
This produces the following result:
node_exporter_build_info{branch="HEAD",endpoint="node-exporter",goversion="go1.11.2", instance="10.0.2.15:9100",job="node-exporter-service",namespace="monitoring", pod="node-exporter-r88r6",revision="f6f6194a436b9a63d0439abc585c76b19a206b21", service="node-exporter-service",version="0.17.0"} 1
We also have node_uname_info, which has the nodename label:
node_uname_info
This translates into the following code:
node_uname_info{domainname="(none)",endpoint="node-exporter", ...Read now
Unlock full access