# Metricbeat Host Metadata on Kubernetes

**URL:** <https://discuss.elastic.co/t/metricbeat-host-metadata-on-kubernetes/154341>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [October 28, 2018, 12:31pm UTC](https://discuss.elastic.co/t/metricbeat-host-metadata-on-kubernetes/154341 "2018-10-28T12:31:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RdrgPorto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rdrgporto/32/13278_2.png) [@RdrgPorto](https://discuss.elastic.co/u/RdrgPorto)\
**Post date:** [October 28, 2018, 12:31pm UTC](https://discuss.elastic.co/t/metricbeat-host-metadata-on-kubernetes/154341/1 "2018-10-28T12:31:11Z")

</div>

Hi everyone,

I am currently working with **Metricbeat** in order to monitor **Kubernetes**. I'm using **Metricbeat manifest** from **Beats Github** ([Link](https://github.com/elastic/beats/blob/master/deploy/kubernetes/metricbeat-kubernetes.yaml)).

I am testing a new feature called [host metadata](https://www.elastic.co/guide/en/beats/metricbeat/current/add-host-metadata.html) . If I use this new feature, **Metricbeat** sends information from the **container**. I would like to know if there is any possibility to send information from the **node** itself, instead of the **container**.

Thanks in advance 🖖 ,

Regards

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [October 28, 2018, 11:08pm UTC](https://discuss.elastic.co/t/metricbeat-host-metadata-on-kubernetes/154341/2 "2018-10-28T23:08:41Z")

</div>

Hi @RdrgPorto,

Metricbeat uses network related calls to retrieve this info. I'm wondering, did you disable `hostNetwork: true` from the manifest? That should make the container to pick net info from the host. I haven't tested this though...

Br,

---

<div class="post-metadata">

**Author:** ![RdrgPorto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rdrgporto/32/13278_2.png) [@RdrgPorto](https://discuss.elastic.co/u/RdrgPorto)\
**Post date:** [October 29, 2018, 8:04am UTC](https://discuss.elastic.co/t/metricbeat-host-metadata-on-kubernetes/154341/3 "2018-10-29T08:04:56Z")

</div>

Hi, @exekias

Regarding to retrieve network information, it is fine. However, my doubt is about host info ( **host.os.family** , **host.os.platform** , and so on). My **Kubernetes** is on **Ubuntu 16.04**.

Here you are some screenshots:

With **hostNetwork: false**

![hostNetworkFalse](https://us1.discourse-cdn.com/elastic/original/3X/3/2/326ddf9c7d7e72dcfe18e8b45ea2f852b9888246.png)

With **hostNetwork: true**

 ![hostnetworktrue](https://us1.discourse-cdn.com/elastic/original/3X/e/f/efbb6e6789e2fc08f2b4d47e39ab9a7f445f3f0c.png)

Is it possible to get information from host ?

Thanks in advance 🖖,

Regards

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 26, 2018, 8:14am UTC](https://discuss.elastic.co/t/metricbeat-host-metadata-on-kubernetes/154341/4 "2018-11-26T08:14:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
