prometheus-community / postgres_exporter

A PostgreSQL metric exporter for Prometheus
Apache License 2.0
2.83k stars 745 forks source link

Export schema level metrics #930

Open chethankumar4046 opened 1 year ago

chethankumar4046 commented 1 year ago

I’m currently using postgres_exporter to collect database metrics and have successfully created a Grafana dashboard to visualize these metrics. However, my new requirement is to add a new panel to gather schema-level metrics for a specific database. I’m currently unsure about the configuration steps for achieving this. While I came across some documentation on configuring custom metrics, it appears that this method has been deprecated.”

Example: I have database test and two schema a and b, I want to show/ show size of a and b in grafana

https://discuss.prometheus.io/t/how-to-export-schema-level-metrics/1937