# Using grafana to display info from the MYSQL master

**URL:** <https://forums.percona.com/t/using-grafana-to-display-info-from-the-mysql-master/7718>\
**Category:** Other MySQL® Questions\
**Tags:** grafana\
**Created:** [June 25, 2020, 3:54am UTC](https://forums.percona.com/t/using-grafana-to-display-info-from-the-mysql-master/7718 "2020-06-25T03:54:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferg22](https://avatars.discourse-cdn.com/v4/letter/f/3bc359/32.png) [@ferg22](https://forums.percona.com/u/ferg22)\
**Post date:** [June 25, 2020, 3:54am UTC](https://forums.percona.com/t/using-grafana-to-display-info-from-the-mysql-master/7718/1 "2020-06-25T03:54:43Z")

</div>

Hello all, I feel this is really obvious task but I just cant sort it out.We have many Percona master/slave pairs which are monitored using prometheus-mysqld-exporter. I need to display the cpu load factor and other items for the master server within grafana. Has anybody got a grafana expression to isolate the master\_hosts. It is&nbsp; easy to get any stat for the slave. But how do I get info for the master?

---

<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, 12:47pm UTC](https://forums.percona.com/t/using-grafana-to-display-info-from-the-mysql-master/7718/2 "2020-06-30T12:47:35Z")

</div>

Hi,  
IMHO it’s possible to fetch all slave services in a variable and then ignore such services in formulas.

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