# How to add custom metrics to mysqld\_exporter integration?

**URL:** <https://community.grafana.com/t/how-to-add-custom-metrics-to-mysqld-exporter-integration/107084>\
**Category:** Grafana Cloud\
**Created:** [November 4, 2023, 4:25am UTC](https://community.grafana.com/t/how-to-add-custom-metrics-to-mysqld-exporter-integration/107084 "2023-11-04T04:25:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maggieliu](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@maggieliu](https://community.grafana.com/u/maggieliu)\
**Post date:** [November 4, 2023, 4:25am UTC](https://community.grafana.com/t/how-to-add-custom-metrics-to-mysqld-exporter-integration/107084/1 "2023-11-04T04:25:09Z")

</div>

Hi,

I am quite new to grafana cloud agent. Need some help on mysql exporter integration.

If I want to add some custom metrics, for example,

select count(\*) from information\_schema.processlist;

What is the right way to add it into existing mysqld\_exporter integration section?  
Can I add multiple queries?

```auto
mysqld_exporter:
  enabled: true
  data_source_name: root@(server-a:3306)/
  relabel_configs:
  - source_labels: [__address__]
    target_label: instance
    replacement: server-a

```

Thank you
