# Metricbeat in Kubernetes - 404 error for Kubernetes module events

**URL:** https://discuss.elastic.co/t/metricbeat-in-kubernetes-404-error-for-kubernetes-module-events/181653
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 17, 2019, 8:37pm UTC](https://discuss.elastic.co/t/metricbeat-in-kubernetes-404-error-for-kubernetes-module-events/181653 "2019-05-17T20:37:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)
#### Post date: [May 28, 2019, 6:04pm UTC](https://discuss.elastic.co/t/metricbeat-in-kubernetes-404-error-for-kubernetes-module-events/181653/2 "2019-05-28T18:04:02Z")

</div>

@chandra2037 Sorry for the late response here. So you are trying to use k8s module in metricbeat to get metrics from the k8s cluster that metricbeat is running on? My first guess is `hosts: ["https://${KUBE_HOST}"]` should be pointing to `hosts: ["localhost:10255"]`. Also maybe [Kubernetes data collection error with metricbeat!](https://discuss.elastic.co/t/kubernetes-data-collection-error-with-metricbeat/143511) will help!

---

_[View the full topic](https://discuss.elastic.co/t/metricbeat-in-kubernetes-404-error-for-kubernetes-module-events/181653)._
