# How can I add new collectors to MySQL exporter?

**URL:** <https://discuss.prometheus.io/t/how-can-i-add-new-collectors-to-mysql-exporter/197>\
**Category:** Exporters and Metrics\
**Created:** [May 4, 2021, 9:16am UTC](https://discuss.prometheus.io/t/how-can-i-add-new-collectors-to-mysql-exporter/197 "2021-05-04T09:16:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrWilkinson](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/mrwilkinson/32/102_2.png) [@MrWilkinson](https://discuss.prometheus.io/u/MrWilkinson)\
**Post date:** [May 4, 2021, 9:16am UTC](https://discuss.prometheus.io/t/how-can-i-add-new-collectors-to-mysql-exporter/197/1 "2021-05-04T09:16:17Z")

</div>

Hi all,  
I installed and configured my mysql\_exporter from : [GitHub - prometheus/mysqld\_exporter: Exporter for MySQL server metrics](https://github.com/prometheus/mysqld_exporter)

I’ve been using it from my localhost:9090 (Prometheus GUI) and it’s going fine. The doubt is that I don’t know how to implement new collectors to add custom queries with my mysql databases.

I was able to see by googling that there is a way to do this: [Tutorial: Monitoring MySQL Server Performance with Prometheus and sql\_exporter | MetricFire Blog](https://www.metricfire.com/blog/tutorial-monitoring-mysql-server-performance-with-prometheus-and-sql_exporter/)

but I don’t know how to implement it in the new versions of the exporter, as it looks different compared to the article I have attached above.

I would appreciate the help, greetings.

---

<div class="post-metadata">

**Author:** ![roidelapluie](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roidelapluie/32/6_2.png) [@roidelapluie](https://discuss.prometheus.io/u/roidelapluie)\
**Post date:** [May 11, 2021, 9:35am UTC](https://discuss.prometheus.io/t/how-can-i-add-new-collectors-to-mysql-exporter/197/2 "2021-05-11T09:35:55Z")

</div>

Hello,

The article you are linking is about the SQL exporter, which is different from the mysqld\_exporter. AFAIK the mysqld exporter does not enable custom sql queries at the moment and focuses on the mysql daemon monitoring.
