# Add PMM as a datasource in Grafana

**URL:** <https://forums.percona.com/t/add-pmm-as-a-datasource-in-grafana/34608>\
**Category:** PMM 2.x\
**Tags:** grafana, pmm\
**Created:** [October 25, 2024, 8:09pm UTC](https://forums.percona.com/t/add-pmm-as-a-datasource-in-grafana/34608 "2024-10-25T20:09:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skp15](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/skp15/32/19681_2.png) [@skp15](https://forums.percona.com/u/skp15)\
**Post date:** [October 25, 2024, 8:09pm UTC](https://forums.percona.com/t/add-pmm-as-a-datasource-in-grafana/34608/1 "2024-10-25T20:09:17Z")

</div>

Hello,

I have a pmm-server hosted on an AWS EKS cluster and exposed it on localhost, I am able to access the PMM UI as well as the /prometheus endpoint that has Single-node VictoriaMetrics.

We have a native Grafana instance for our observability and would like to integrate the pmm-server into Grafana as one-single platform for our postgresql observability.

When I am adding pmm’s service ([http://monitoring-service.pmm.svc.cluster.local/prometheus](http://monitoring-service.pmm.svc.cluster.local/prometheus)) as a data source to Grafana also hosted in the same cluster, I am getting 401 unauthorized. I am using the decrypted password from the secret and with no authentication and no luck.

What am I doing wrong? And how can I fix this?

Thanks.

---

<div class="post-metadata">

**Author:** ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)\
**Post date:** [October 30, 2024, 12:07pm UTC](https://forums.percona.com/t/add-pmm-as-a-datasource-in-grafana/34608/2 "2024-10-30T12:07:16Z")

</div>

Hi @skp15  
I’ve tested this configuration with  
Datasource: Prometheus  
URL: [http://PMM\_SERVER/prometheus](http://pmm_server/prometheus) (httpS may be a problem if cert are not OK)  
Auth: Basic Auth ,  
Username-password - for the user from PMM

And this worked on separate instances.
