# Cannot access /metrics path, does in\_cluster and kubeconfig work for apiserver in kubernetes modules?

**URL:** https://discuss.elastic.co/t/cannot-access-metrics-path-does-in-cluster-and-kubeconfig-work-for-apiserver-in-kubernetes-modules/197281
**Category:** Beats
**Tags:** metricbeat
**Created:** [August 29, 2019, 8:23am UTC](https://discuss.elastic.co/t/cannot-access-metrics-path-does-in-cluster-and-kubeconfig-work-for-apiserver-in-kubernetes-modules/197281 "2019-08-29T08:23:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KielChan](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@KielChan](https://discuss.elastic.co/u/KielChan)
#### Post date: [August 29, 2019, 8:23am UTC](https://discuss.elastic.co/t/cannot-access-metrics-path-does-in-cluster-and-kubeconfig-work-for-apiserver-in-kubernetes-modules/197281/1 "2019-08-29T08:23:03Z")

</div>

my metric beat cannot access apiserver:8443/metrics, even though it has privileges to access apiserver

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [August 29, 2019, 8:23pm UTC](https://discuss.elastic.co/t/cannot-access-metrics-path-does-in-cluster-and-kubeconfig-work-for-apiserver-in-kubernetes-modules/197281/2 "2019-08-29T20:23:26Z")

</div>

Hi @KielChan and welcome 🙂

Do you see any related error in Metricbeat logs? Could you share the configuration you are using for Kubernetes modules?

---

<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 26, 2019, 8:23pm UTC](https://discuss.elastic.co/t/cannot-access-metrics-path-does-in-cluster-and-kubeconfig-work-for-apiserver-in-kubernetes-modules/197281/3 "2019-09-26T20:23:31Z")

</div>

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