# Kibana/ES not showing kube pod metrics

**URL:** <https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [November 21, 2019, 2:53pm UTC](https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913 "2019-11-21T14:53:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rp346](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rp346/32/53882_2.png) [@rp346](https://discuss.elastic.co/u/rp346)\
**Post date:** [November 21, 2019, 2:53pm UTC](https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913/1 "2019-11-21T14:53:20Z")

</div>

I have ES-Beats-Kibana setup running in Kubernetes. In Kibana under Infrastructure App on Host Tab I can see all metrics (CPU, Memory, Load, In/Out Traffic & Log Rate) for all Kubernetes nodes.

But On Kubernetes Tab, I see list of all containers running in the cluster, but don't see any metric (CPU, Memory, In/Out Traffic). All these metrics are showing `0%`

I do have metricbeat & filebeat running as Daemonset in the cluster. Don't know if it doesn't collect these pod metrics or Kibana doesn't show it.

 ![14%20AM](https://us1.discourse-cdn.com/elastic/original/3X/4/f/4feca2276ffa590673db2b573612caca14d1ebff.png)

This is [manifest](https://pastebin.com/raw/Y5w5FkpR) for metricbeat

Any idea whats wrong here ?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Carriou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_carriou/32/47347_2.png) [@Benjamin\_Carriou](https://discuss.elastic.co/u/Benjamin_Carriou)\
**Post date:** [November 22, 2019, 10:19am UTC](https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913/2 "2019-11-22T10:19:47Z")

</div>

Hi @rp346,

+1, I have the same issue.

If I use prometheus + grafana, i can see pods metrics.

So, the problem seem be due to metricbeats ...

The serviceAccount can't list some ressources:

```auto
Failed to list *v1beta1.ReplicaSet: replicasets.apps is forbidden: User "system:serviceaccount:kube-system:metricbeat" cannot list resource "replicasets" in API group "apps" at the cluster scope

```

An issue is created [here](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948)

The problems seem be fix in future release

---

<div class="post-metadata">

**Author:** ![Benjamin\_Carriou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_carriou/32/47347_2.png) [@Benjamin\_Carriou](https://discuss.elastic.co/u/Benjamin_Carriou)\
**Post date:** [November 22, 2019, 10:42am UTC](https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913/3 "2019-11-22T10:42:27Z")

</div>

To solve the problem with serviceAccount, edit the serviceaccountname `metricbeat`:

```auto
k -n kube-system edit clusterroles metricbeat

```

And change some elements:

```auto
[...]
rules:
- apiGroups:
  - ""
  - extensions
  - apps
  resources:
  - namespaces
  - pods
  - events
  - deployments
  - nodes
  - replicasets
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - extensions
  resources:
  - replicasets
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - apps
  resources:
  - statefulsets
  - deployments
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - nodes/stats
  verbs:
  - get
[...]

```

---

<div class="post-metadata">

**Author:** ![rp346](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rp346/32/53882_2.png) [@rp346](https://discuss.elastic.co/u/rp346)\
**Post date:** [November 22, 2019, 2:21pm UTC](https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913/4 "2019-11-22T14:21:05Z")

</div>

I updated the `metricbeat` **ClusterRole** as per your suggestion and re-deployed metricbeat. Still I don't see any metric under Kubernetes tab in Infrastructure App.

Yes Prometheus with Grafana works perfectly which has `node-exporter`.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Carriou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_carriou/32/47347_2.png) [@Benjamin\_Carriou](https://discuss.elastic.co/u/Benjamin_Carriou)\
**Post date:** [November 22, 2019, 4:31pm UTC](https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913/5 "2019-11-22T16:31:49Z")

</div>

Yes, I'am exactly in the same case of you.

Update the clusterRole don't fix the problem

---

<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:** [December 20, 2019, 4:31pm UTC](https://discuss.elastic.co/t/kibana-es-not-showing-kube-pod-metrics/208913/6 "2019-12-20T16:31:52Z")

</div>

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