# Metricbeat 7.4.0 and Kubernetes API - Issue

**URL:** https://discuss.elastic.co/t/metricbeat-7-4-0-and-kubernetes-api-issue/202167
**Category:** Beats
**Created:** [October 3, 2019, 12:32pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-0-and-kubernetes-api-issue/202167 "2019-10-03T12:32:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![delphi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/delphi/32/52397_2.png) [@delphi](https://discuss.elastic.co/u/delphi)
#### Post date: [October 3, 2019, 12:32pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-0-and-kubernetes-api-issue/202167/1 "2019-10-03T12:32:54Z")

</div>

Hi, there.

Based on [GitHub Beats Issue](https://github.com/elastic/beats/issues/13850), I'm getting an problem related with k8s API, even using 1.13 clusters. After downgraded Metricbeat to 7.3.2, it was solved.

My config is:

> ```
> metricbeat.config:
> modules:
> path: ${path.config}/modules.d/*.yml
> reload.enabled: false
> 
> queue.mem:
> events: 4096
> 
> setup.dashboards:
> enabled: true
> index: "mtb-k8s-*"
> 
> setup.template:
> enabled: true
> overwrite: true
> name: mtb-k8s
> pattern: "mtb-k8s-*"
> settings.index:
> number_of_shards: 3
> number_of_replicas: 0
> number_of_routing_shards: 30
> routing.allocation.require.node_type: "hot"
> 
> monitoring.enabled: "true"
> monitoring.elasticsearch.username: ${beats-username}
> monitoring.elasticsearch.password: ${beats-password}
> 
> setup.ilm:
> enabled: false
> 
> output.elasticsearch:
> worker: 2
> hosts: http://asdasdasdasd:9200
> username: ${metricbeat-elastic-username}
> password: ${metricbeat-elastic-password}
> indices:
> - index: "mtb-k8s-%{[kubernetes.namespace]}"
> when.has_fields: kubernetes.namespace
> - index: "mtb-k8s-node-metrics"
> when.contains:
> metricset.name: "state_node"
> 
> setup.kibana:
> host: "https://asdasdasd:443"
> 
> metricbeat.modules:
> kubernetes:
> enabled: true
> config:
> - module: kubernetes
> metricsets:
> - state_node
> - state_deployment
> - state_replicaset
> - state_statefulset
> - state_pod
> - state_container
> # - state_cronjob - After the downgrade
> add_metadata: true
> labels.dedot: true
> annotations.dedot: true
> period: 10s
> host: ${NODE_NAME}
> #Even pointing to a newest kube-state-metrics service, the issue still exists.
> hosts: ["asdfasfasfasf.svc:8080"]
> 
> ```

I hope you can fix that.

---

<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 3, 2019, 7:17pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-0-and-kubernetes-api-issue/202167/2 "2019-10-03T19:17:14Z")

</div>

Hi @delphi,

I'm not able to reproduce this case.  
Can you provide the apiGroups for the loads you are measuring?

I'm using kubernetes 1.13.10, and testing deployments and statefulsets. No issues so far.

---

<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 3, 2019, 7:20pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-0-and-kubernetes-api-issue/202167/3 "2019-10-03T19:20:48Z")

</div>

@delphi

saw the issue, thanks a lot for reporting it, getting back to the GH thread.

---

<div class="post-metadata">

### Author: ![delphi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/delphi/32/52397_2.png) [@delphi](https://discuss.elastic.co/u/delphi)
#### Post date: [October 3, 2019, 7:22pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-0-and-kubernetes-api-issue/202167/4 "2019-10-03T19:22:28Z")

</div>

Ok, @pmercado.

Thanks.

---

<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: [October 31, 2019, 9:22pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-0-and-kubernetes-api-issue/202167/5 "2019-10-31T21:22:31Z")

</div>

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