telegraf
telegraf copied to clipboard
[[inpus.system]]: include nodename in os metric
Use Case
Having the nodename from uname(2) included in the output, would make it simpler to track changes to hostname.
From time to time it happens that someone or something messes with the hostname in an unexpected way. Having the nodename as part of the measurement (either as a tag or as a field) would ease the detection and investigation (including the "when did the change occur").
Expected behavior
the nodename (a.k.a. hostname) would be included in the line-protocol
Actual behavior
The host-value from agent.conf is included, but that is only set initially. The current hostname (nodename) is not included.
Additional info
No response
nodename can be available in telegraf-controller's heartbeat