grafana-agent: set hostname
label on all metrics
This is handy to quickly see all metrics exported by a node, without having to mangle with the already existing `instance` label. `hostname` is essentially a variant of `instance` but without ports.
This commit is contained in:
parent
d26dd9f2a6
commit
22f19ee550
|
@ -41,6 +41,7 @@ in
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
global.external_labels.hostname = config.networking.hostName;
|
||||||
configs = [
|
configs = [
|
||||||
{
|
{
|
||||||
name = config.networking.hostName;
|
name = config.networking.hostName;
|
||||||
|
|
Loading…
Reference in a new issue