# Which credentials shall we use to access local metrics endpoint?

**URL:** <https://forums.percona.com/t/which-credentials-shall-we-use-to-access-local-metrics-endpoint/7729>\
**Category:** PMM 2.x\
**Tags:** pmm\
**Created:** [June 30, 2020, 8:54am UTC](https://forums.percona.com/t/which-credentials-shall-we-use-to-access-local-metrics-endpoint/7729 "2020-06-30T08:54:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Huet](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kevin_huet/32/72_2.png) [@Kevin\_Huet](https://forums.percona.com/u/Kevin_Huet)\
**Post date:** [June 30, 2020, 8:54am UTC](https://forums.percona.com/t/which-credentials-shall-we-use-to-access-local-metrics-endpoint/7729/1 "2020-06-30T08:54:21Z")

</div>

Hello,We are successfully using PMM (2.6.1) and it works well.But I have a&nbsp;&nbsp;(stupid?) question: When I want to access the node’s metrics locally, i.e mynode:42000/metrics, I am asked for credentials, which ones am I supposed to use ?For sure, I tried with the pmm user / password, but it doesn’t work, so I’m a bit lost.Any help that would be appreciated.Thank you !

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [June 30, 2020, 9:36am UTC](https://forums.percona.com/t/which-credentials-shall-we-use-to-access-local-metrics-endpoint/7729/2 "2020-06-30T09:36:07Z")

</div>

Hi  
You should use an agent\_id as a password and username pmm.  
Please take a look at the next example

 ![](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/20119803036761c6cad0516f79fbb3fec982da8b.png "Image: /uploads/percona1/original/1X/20119803036761c6cad0516f79fbb3fec982da8b.png")

---

<div class="post-metadata">

**Author:** ![Kevin\_Huet](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kevin_huet/32/72_2.png) [@Kevin\_Huet](https://forums.percona.com/u/Kevin_Huet)\
**Post date:** [June 30, 2020, 9:49am UTC](https://forums.percona.com/t/which-credentials-shall-we-use-to-access-local-metrics-endpoint/7729/3 "2020-06-30T09:49:36Z")

</div>

Well, that’s something I could hardly guess, it works thank you 🙂  
Is it documented somewhere ?

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [June 30, 2020, 10:05am UTC](https://forums.percona.com/t/which-credentials-shall-we-use-to-access-local-metrics-endpoint/7729/4 "2020-06-30T10:05:32Z")

</div>

AFAIK it hasn’t mentioned in documentation.

---

<div class="post-metadata">

**Author:** ![Kevin\_Huet](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kevin_huet/32/72_2.png) [@Kevin\_Huet](https://forums.percona.com/u/Kevin_Huet)\
**Post date:** [June 30, 2020, 10:12am UTC](https://forums.percona.com/t/which-credentials-shall-we-use-to-access-local-metrics-endpoint/7729/5 "2020-06-30T10:12:40Z")

</div>

Ok, thank you for your quick answer 😉
