# How to Build Customized  metrics in PMM2.

**URL:** https://forums.percona.com/t/how-to-build-customized-metrics-in-pmm2/7684
**Category:** PMM 2.x
**Created:** [June 14, 2020, 10:25pm UTC](https://forums.percona.com/t/how-to-build-customized-metrics-in-pmm2/7684 "2020-06-14T22:25:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SujitR](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@SujitR](https://forums.percona.com/u/SujitR)
#### Post date: [June 14, 2020, 10:25pm UTC](https://forums.percona.com/t/how-to-build-customized-metrics-in-pmm2/7684/1 "2020-06-14T22:25:14Z")

</div>

Hi Team,  
1)I want to add a graph in Query Analytics dashboard as like PMM1 with server selection option.  
please find attached screenshot(attached screenshot is of PMM1) which I want to add in PMM2 as like PMM1.  
2)If it’s not possible within the Query Analytics dashboard. how can I add these metrics with this service name selection option?&nbsp;

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

---

<div class="post-metadata">

### Author: ![steffen](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@steffen](https://forums.percona.com/u/steffen)
#### Post date: [June 16, 2020, 9:59am UTC](https://forums.percona.com/t/how-to-build-customized-metrics-in-pmm2/7684/2 "2020-06-16T09:59:44Z")

</div>

Hi Sujit,  
when I open the dashboard settings and make dashboard to “editable”, then I see the variables and all other settings like in PMM1.  
When I click on the “$node\_name” variable, I can see its settings.   
Changing the “Hide” option to empty makes the variable visible on the dashboard top and I can select a specific host.Is that what you were looking for?  
I’d suggest saving the dashboard under a different name if you change anything from the default settings.  
Greetings,  
Steffen  
 ![](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/8603db38a65dab6130a37e7dd8c6e34ed87b5ae0.png "Image: /uploads/percona1/original/1X/8603db38a65dab6130a37e7dd8c6e34ed87b5ae0.png")

---

<div class="post-metadata">

### Author: ![SujitR](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@SujitR](https://forums.percona.com/u/SujitR)
#### Post date: [September 8, 2020, 8:10am UTC](https://forums.percona.com/t/how-to-build-customized-metrics-in-pmm2/7684/3 "2020-09-08T08:10:00Z")

</div>

Thanks for the inputs steffen,  
this solution worked for me.
