Patroni metrics, why not?

It is very good to see PostgreSQL Cluster manager Patroni’s metrics inside PostgreSQL dashboards. I got patroni metrics from patroni_exporter and using Grafana dashboard (ID 66). Is it possible to do that?


Hi @Cihan_Tunali , thanks for posting to the Percona forums!
What you’re asking for is completely possible with PMM! You’ll want to use what is known as External Services. You’ll need to set up the exporter, then you can add it to PMM via the following example command:
pmm-admin add external --listen-port=9393 --service-name=db1-patroni

As you’ve already identified a dashboard, you simply need to be logged into PMM with an admin account and you can import the dashboard. Note you may need to change the name of the Data Source to Metrics in order to properly source the data.
Best of luck and let us know how you make out!

1 Like