# Metricbeats on GKE not working as expected - Missing deployments, nodes, etc

**URL:** https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948
**Category:** Beats
**Tags:** metricbeat
**Created:** [October 23, 2019, 7:46pm UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948 "2019-10-23T19:46:20Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Henrique\_Marques\_Fer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henrique_marques_fer/32/36034_2.png) [@Henrique\_Marques\_Fer](https://discuss.elastic.co/u/Henrique_Marques_Fer)
#### Post date: [October 23, 2019, 7:46pm UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/1 "2019-10-23T19:46:20Z")

</div>

I followed everything as the tutorial is saying: [https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html](https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html)

But I still don't get my nodes and deployments status:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a15b848aa799b87e1ddcbb9377df1333da5b44de.png)

I have kube-state-metrics running, when I see the logs on the metricbeat pod I get the following error:

"[github.com/elastic/beats/libbeat/common/kubernetes/watcher.go:235:](http://github.com/elastic/beats/libbeat/common/kubernetes/watcher.go:235:) 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"

---

<div class="post-metadata">

### Author: ![pmercado](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pmercado](https://discuss.elastic.co/u/pmercado)
#### Post date: [October 24, 2019, 8:00am UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/2 "2019-10-24T08:00:31Z")

</div>

That's a known issue, will be fixed at next release

> <https://github.com/elastic/beats/pull/13905>

---

<div class="post-metadata">

### Author: ![tkzv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tkzv/32/57319_2.png) [@tkzv](https://discuss.elastic.co/u/tkzv)
#### Post date: [November 7, 2019, 10:38am UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/3 "2019-11-07T10:38:19Z")

</div>

Is there a workaround? Other than downgrading to 7.3.

---

<div class="post-metadata">

### Author: ![tkzv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tkzv/32/57319_2.png) [@tkzv](https://discuss.elastic.co/u/tkzv)
#### Post date: [November 27, 2019, 4:37pm UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/4 "2019-11-27T16:37:58Z")

</div>

@pmercado, can you tell when the next release is likely to become available?

---

<div class="post-metadata">

### Author: ![tkzv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tkzv/32/57319_2.png) [@tkzv](https://discuss.elastic.co/u/tkzv)
#### Post date: [December 3, 2019, 10:59am UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/5 "2019-12-03T10:59:33Z")

</div>

@pmercado, I upgraded Metricbeat to 7.5.0 and still don't get per-node network, CPU and process metrics and nanocores counts. Should I try 8.0 from git?

---

<div class="post-metadata">

### Author: ![Henrique\_Marques\_Fer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henrique_marques_fer/32/36034_2.png) [@Henrique\_Marques\_Fer](https://discuss.elastic.co/u/Henrique_Marques_Fer)
#### Post date: [December 3, 2019, 2:03pm UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/6 "2019-12-03T14:03:27Z")

</div>

> [@tkzv](#):
>
> @pmercado, I upgraded Metricbeat to 7.5.0 and still don't get per-node network, CPU and process metrics and nanocores counts. Should I try 8.0 from git?

Same here! The metrics are still missing...

---

<div class="post-metadata">

### Author: ![tomicarsk6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomicarsk6/32/46015_2.png) [@tomicarsk6](https://discuss.elastic.co/u/tomicarsk6)
#### Post date: [December 5, 2019, 11:34am UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/7 "2019-12-05T11:34:00Z")

</div>

> [@Henrique\_Marques\_Fer](#):
>
> Same here! The metrics are still missing.

It's the same too on 7.5 version, metrics data are still missing.

---

<div class="post-metadata">

### Author: ![Edgar\_Peixoto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/edgar_peixoto/32/58987_2.png) [@Edgar\_Peixoto](https://discuss.elastic.co/u/Edgar_Peixoto)
#### Post date: [December 7, 2019, 10:24pm UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/8 "2019-12-07T22:24:30Z")

</div>

Did you try to execute the yaml as an admin in GKE? See in the documentation.

> **[kubernetes/kube-state-metrics](https://github.com/kubernetes/kube-state-metrics#kubernetes-deployment)**
>
> Add-on agent to generate and expose cluster-level metrics. - kubernetes/kube-state-metrics

---

<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: [January 4, 2020, 10:24pm UTC](https://discuss.elastic.co/t/metricbeats-on-gke-not-working-as-expected-missing-deployments-nodes-etc/204948/9 "2020-01-04T22:24:34Z")

</div>

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