# Metricbeat 7.2 : Kubernetes module - Gathers only host metrics but not that of node,container etc

**URL:** https://discuss.elastic.co/t/metricbeat-7-2-kubernetes-module-gathers-only-host-metrics-but-not-that-of-node-container-etc/200266
**Category:** Beats
**Tags:** metricbeat
**Created:** [September 19, 2019, 4:27pm UTC](https://discuss.elastic.co/t/metricbeat-7-2-kubernetes-module-gathers-only-host-metrics-but-not-that-of-node-container-etc/200266 "2019-09-19T16:27:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sam101](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@sam101](https://discuss.elastic.co/u/sam101)
#### Post date: [September 19, 2019, 4:27pm UTC](https://discuss.elastic.co/t/metricbeat-7-2-kubernetes-module-gathers-only-host-metrics-but-not-that-of-node-container-etc/200266/1 "2019-09-19T16:27:39Z")

</div>

As a brief overview on installation,  
Deployed metricbeat as a daemonset and it gathers the metrics every 30secs and has the  
Metricbeat for Kubernetes with Kubernetes module enabled. But metricbeat seems to be gathering the metrics for only the Host/EC2 and is not gathering and publishing any metrics for the Kubernetes components like Nodes, Pods, Containers etc.

Followed the documentation described on the below page ( [Elastic.co](http://Elastic.co)'s official page ) to install the metricbeat in kubernetes and am still the seeing error  
[https://www.elastic.co/guide/en/beats/metricbeat/7.2/setting-up-and-running.html](https://www.elastic.co/guide/en/beats/metricbeat/7.2/setting-up-and-running.html)

Tried to look for information on this but nothing seems to work. Curious as to why it's not working but works for the samples provided . Any help on this is apreciated.  
\<metrics gathered by the metricbeat  
{"metrics": {"beat":{"cpu":{"system":{"ticks":37970,"time":{"ms":227}},"total":{"ticks":84410,"time":{"ms":556},"value":84410},"user":{"ticks":46440,"time":{"ms":329}}},"handles":{"limit":{"hard":65536,"soft":65536},"open":9},"info":{"ephemeral\_id":"ca1c560f-e0a9-4641-9b9c-d1defe934533","uptime":{"ms":4440052}},"memstats":{"gc\_next":19193552,"memory\_alloc":15377496,"memory\_total":14367877360},"runtime":{"goroutines":53}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":3,"events":{"active":218,"published":93,"total":93}}},"metricbeat":{"kubernetes":{"container":{"events":3,"failures":3},"node":{"events":3,"failures":3},"pod":{"events":3,"failures":3},"system":{"events":3,"failures":3},"volume":{"events":3,"failures":3}},"system":{"core":{"events":24,"success":24},"cpu":{"events":3,"success":3},"diskio":{"events":6,"success":6},"load":{"events":3,"success":3},"memory":{"events":3,"success":3},"network":{"events":6,"success":6},"process":{"events":30,"success":30},"process\_summary":{"events":3,"success":3}}},"system":{"load":{"1":0.16,"15":0.31,"5":0.33,"norm":{"1":0.02,"15":0.0388,"5":0.0413}}}}}}  
/\>

---

<div class="post-metadata">

### Author: ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)
#### Post date: [September 25, 2019, 10:26pm UTC](https://discuss.elastic.co/t/metricbeat-7-2-kubernetes-module-gathers-only-host-metrics-but-not-that-of-node-container-etc/200266/2 "2019-09-25T22:26:21Z")

</div>

Hello, I'm not a k8s expert but I know there is a good example for this topic. Maybe [https://github.com/elastic/examples/tree/master/scraping-prometheus-k8s-with-metricbeat](https://github.com/elastic/examples/tree/master/scraping-prometheus-k8s-with-metricbeat) will help you a bit.

---

<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: [October 23, 2019, 10:26pm UTC](https://discuss.elastic.co/t/metricbeat-7-2-kubernetes-module-gathers-only-host-metrics-but-not-that-of-node-container-etc/200266/3 "2019-10-23T22:26:27Z")

</div>

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