Monitor WordPress with Prometheus and Grafana

Questo articolo รจ stato scritto oltre 1 years, il contenuto potrebbe essere datato.
I suggest to check the most updated article about it!

There few information about how to do it and the big problem is that refer to incomplete WordPress plugins without real site health information from the database.

Based on my experience with another script that I built to check the WordPress’s DB status I created a new plugin.

The new plugin is exposing an endpoint to scrape with Prometheus, with URL parameters to turn them off. In this way it is possible to do different scrapers with different timings for ddifferent parameters.

Last but not last there is also a WordPress hook so it is possible to extend it with new rules.

I was forgetting that include also a constant to pass as URL parameter to show the output, in this way those informations are not exposed to internet.

The plugin is on GitHub at

I built also a Grafana Dashboard to use with this plugin and the plugin readme include the configs for Prometheus.

This is the first dashboard that I built for Grafana so expect some changes in the future, probably also to the plugin for other informations.


Liked it? Take a second to support Mte90 on Patreon!
Become a patron at Patreon!

4 thoughts on “Monitor WordPress with Prometheus and Grafana

  1. Hey man, what changes would I have to perform inorder to use this in my wordpress with influx db?

    1. Hi Ashwin I have no idea.
      This is built for Prometheus DB, I studied how works that technology and not Influx so I don’t know what changes are required to add that support.

  2. Never mind mate I changed my data source to Prometheus DB. The thing is I’m a learner using minikube and I have deployed a wordpress website in a single intance. I wanna use this plugin but don’t know how!. I want push your plugin but I couldn’t find any method to.

    1. I don’t know very well prometheus and grafana but I got working and decided to develop that plugin. You should check the readme of the plugin because there are the instructions about configure Prometheus and the Grafana Dashboard.

Leave a Reply

Your email address will not be published. Required fields are marked *