Add kubernetes.node.hostname
field with the actual hostname of the node
#20434
Labels
discuss
Issue needs further discussion.
enhancement
Team:Platforms
Label for the Integrations - Platforms team
Describe the enhancement:
On some cases we need to correlate host names with kubernetes nodes, or filter events by kubernetes node using host names. On these cases we rely on
host.name
having a consistent value withkubernetes.node.name
, but they are values of different nature:host.name
is the hostname as returned by the operating system.kubernetes.node.name
is the node name as registered in the Kubernetes API, what could in theory be any string that matches as DNS subdomain.Even if the kubernetes node name is most of the times the host name, we have seen cases where the OS reports the hostname as FQDN, and the kubernetes name is the same, but without the domain, what leads to
host.name
andkubernetes.node.name
to have different values.Kubernetes API reports more data about nodes apart of their name, including some hostnames. We could include the hostname in the events as a
kubernetes.node.hostname
field.Hostnames can be found as addresses in node metadata, and the definition is coherent with the value used in Beats for
host.name
(The hostname as reported by the node’s kernel), see https://v1-17.docs.kubernetes.io/docs/concepts/architecture/nodes/#addressesDescribe a specific use case for the enhancement or feature:
Metrics UI shows nodes per
host.name
, but when zooming into kubernetes views it expects thekubernetes.node.name
to be coherent withhost.name
so it can link from one view to the other and show the expected data.The text was updated successfully, but these errors were encountered: