# Problem in Metricbeat for kubernetes monitoring deployed by ECK

**URL:** https://discuss.elastic.co/t/problem-in-metricbeat-for-kubernetes-monitoring-deployed-by-eck/324967
**Category:** Elastic Cloud on Kubernetes (ECK)
**Created:** [February 8, 2023, 5:24am UTC](https://discuss.elastic.co/t/problem-in-metricbeat-for-kubernetes-monitoring-deployed-by-eck/324967 "2023-02-08T05:24:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yesrenga](https://avatars.discourse-cdn.com/v4/letter/y/7ea924/32.png) [@yesrenga](https://discuss.elastic.co/u/yesrenga)
#### Post date: [February 8, 2023, 5:24am UTC](https://discuss.elastic.co/t/problem-in-metricbeat-for-kubernetes-monitoring-deployed-by-eck/324967/1 "2023-02-08T05:24:02Z")

</div>

Hello,  
In order to monitor my k8s cluster, I deployed Elasticsearch, Kibana and Metricbeat referring to the article [this yaml](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-beat-configuration-examples.html#k8s_metricbeat_for_kubernetes_monitoring)

First I had issues since there was no kube-state-metrics enabled on the cluster, I then referred to some of the articles and enabled kube-state-metrics. Now in my kibana dashboard I can see only metrics of the hosts (cluster nodes) but not metrics of kubernetes resources (Nodes, Pods, Containers, Volumes).

I see this error on the metricbeat pods  
error making http request: Get "[https://hostname:10250/stats/summary\](https://hostname:10250/stats/summary%5C)": lookup hostname on ip: no such host","service.name":"metricbeat","ecs.version":"1.6.0"

I saw a similar post regarding the same where the user describes the below fixed the issue, but I am not sure what that means. Could someone please help if you are able to relate?  
" I deployed the yaml by command: `cat <<EOD | kubectl -f -`  
, it caused the `$HOSTNAME` to convert to local host name and deploy to all nodes with this static host name.  
I tried deploy the yaml by file and not by above command and it worked:"

@HadarPeeran could you please help if possible

---

<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: [March 8, 2023, 5:24am UTC](https://discuss.elastic.co/t/problem-in-metricbeat-for-kubernetes-monitoring-deployed-by-eck/324967/2 "2023-03-08T05:24:14Z")

</div>

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