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

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'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

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}}}}}}
/>

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 will help you a bit.

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