# Metricbeat: Dashboard desired pods shown as 0 (zero)

**URL:** <https://discuss.elastic.co/t/metricbeat-dashboard-desired-pods-shown-as-0-zero/282340>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 24, 2021, 11:16am UTC](https://discuss.elastic.co/t/metricbeat-dashboard-desired-pods-shown-as-0-zero/282340 "2021-08-24T11:16:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgo1](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@mgo1](https://discuss.elastic.co/u/mgo1)\
**Post date:** [August 24, 2021, 11:16am UTC](https://discuss.elastic.co/t/metricbeat-dashboard-desired-pods-shown-as-0-zero/282340/1 "2021-08-24T11:16:34Z")

</div>

Hi,  
As the title suggests I'm getting some metrics in the [Metricbeat Kubernetes] ECS Overview but I have a couple of issues.

1. The desired pods and available pods is always zero (even though there are around 70 pods running in my cluster).
2. Metrics are shown intermittently: sometimes I get deployments, nodes, memory usage by pod etc. But sometimes everything is zero. I have to play with the time range, and autorefresh to get something.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0b3fa5d34f3c967a600d498aff2425b4d89afdea.png)

My configuration  
Kubernetes Cluster version 1.21.2 running on Azure (AKS)  
ECK version 1.7  
Elasticsearch, kibana and metricbeats version 7.14.0  
I'm using kube-metrics v2.2.0 in kube-system namespace  
This is the configuration i'm using  
[https://raw.githubusercontent.com/elastic/cloud-on-k8s/1.7/config/recipes/beats/metricbeat\_hosts.yaml](https://raw.githubusercontent.com/elastic/cloud-on-k8s/1.7/config/recipes/beats/metricbeat_hosts.yaml)

I added the following module

```auto
      - module: kubernetes
        period: 10s
        hosts:
        - kube-state-metrics.kube-system.svc.cluster.local:8080
        metricsets:
        - state_node
        - state_deployment
        - state_replicaset
        - state_statefulset
        - state_pod
        - state_container

```

The logs show no errors, and all pods related from Elastic stack are running in their own namespace.

Any idea what could be causing this? Thanks for your help.

---

<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:** [September 21, 2021, 1:17pm UTC](https://discuss.elastic.co/t/metricbeat-dashboard-desired-pods-shown-as-0-zero/282340/2 "2021-09-21T13:17:11Z")

</div>

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