telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

[[inpus.system]]: include nodename in os metric

Open poulhs opened this issue 1 month ago • 1 comments

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

poulhs avatar Oct 17 '26 13:10 poulhs

nodename can be available in telegraf-controller's heartbeat

poulhs avatar Oct 26 '26 10:10 poulhs