# Install Metricbeat on Kubernetes Cluster ( Azure)

**URL:** <https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 17, 2023, 2:01pm UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328 "2023-01-17T14:01:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swathi12](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Swathi12](https://discuss.elastic.co/u/Swathi12)\
**Post date:** [January 17, 2023, 2:01pm UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328/1 "2023-01-17T14:01:33Z")

</div>

Hi team,

i am trying for several weeks to install metricbeat on kubernetes cluster (azure) and i following these instructions:  
[Run Metricbeat on Kubernetes | Metricbeat Reference [8.6] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html)

i edited the metricbeat-kubernetes.yml file following  
But the dashboard on kibana is showing nothing ......

```auto
- module: kubernetes
                  metricsets:
                    - apiserver
                  hosts: ["https://monitoringk8s-dns-8fba3240.hcp.northeurope.azmk8s.io:80"]

output.elasticsearch:
      #hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
      #username: ${ELASTICSEARCH_USERNAME}
      #password: ${ELASTICSEARCH_PASSWORD}
      
       hosts: ["http://elasticsearch.imc-hosting.com:80"]
       username: "xxxxxxxxx"
       password: "xxxxxxxxxxxxxx"

```

---

<div class="post-metadata">

**Author:** ![Swathi12](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Swathi12](https://discuss.elastic.co/u/Swathi12)\
**Post date:** [January 18, 2023, 3:06pm UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328/2 "2023-01-18T15:06:54Z")

</div>

@warkolm

i installed on VM :

1. curl -L -O **[https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-8.5.1-x86\_64.rpm](https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-8.5.1-x86_64.rpm)**
2. Edit the configuration -\> Modify /etc/metricbeat/metricbeat.yml
3. Enable and configure the kubernetes module  
4 .Start Metricbeat
4. Module status  
Check that data is received from the Metricbeat kubernetes module  
Check data  
**Data successfully received from this module**

After this i went on the Dashboard and under **Metricbeat Kubernetes Overwiev** i can't see anything...

And i am getting this error:

> Error encountered while loading saved dashboard: Could not locate that dashboard (id: AV4RGUqo5NkDleZmzKuZ-ecs)

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

Do i missed any configuration ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 18, 2023, 10:14pm UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328/3 "2023-01-18T22:14:05Z")

</div>

In future please don't ping people that aren't already part of your topic.

Did you run the setup command? If not then that's the likely cause.

---

<div class="post-metadata">

**Author:** ![Swathi12](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Swathi12](https://discuss.elastic.co/u/Swathi12)\
**Post date:** [January 19, 2023, 6:54am UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328/4 "2023-01-19T06:54:24Z")

</div>

i am sorry okai .

yes i run the setup command.

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [January 20, 2023, 2:34pm UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328/5 "2023-01-20T14:34:17Z")

</div>

Anything in the logs of Metricbeat? Also, not having any credentials when querying the Kubernetes API on a public interface sounds weird to me.

---

<div class="post-metadata">

**Author:** ![Swathi12](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Swathi12](https://discuss.elastic.co/u/Swathi12)\
**Post date:** [January 20, 2023, 3:30pm UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328/6 "2023-01-20T15:30:27Z")

</div>

@xeraa  
its working now.. the problem was the version of metricbeat. Using now 7.17. The latest one did not worked.

I just hide the credentials

---

<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:** [February 17, 2023, 3:30pm UTC](https://discuss.elastic.co/t/install-metricbeat-on-kubernetes-cluster-azure/323328/7 "2023-02-17T15:30:59Z")

</div>

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