Grafana Dashboard for Pgpool-II Exporter
Pgpool-II Exporter is a tool that periodically collects Pgpool-II and PostgreSQL Cluster's metrics and exports the results as Prometheus metrics.
Pgpool-II Exporter uses SHOW command to collect Pgpool-II and PostgreSQL Cluster's metrics, including:
name | Description |
---|---|
pgpool2_frontend_total | Number of total child processes |
pgpool2_frontend_used | Number of used child processes |
pgpool2_frontend_used_ratio | Ratio of used child processes to total child processes (0.0 to 1.0) |
pgpool2_pool_nodes_status | Backend node Status (1 for up or waiting, 0 for down or unused) |
pgpool2_pool_nodes_replication_delay | Replication delay |
pgpool2_pool_backend_stats_error_cnt | Error message counts returned from backend |
pgpool2_pool_backend_stats_fatal_cnt | Fatal message counts returned from backend |
pgpool2_pool_backend_stats_panic_cnt | Panic message counts returned from backend |
pgpool2_pool_backend_stats_select_cnt | SELECT statement counts issued to each backend |
pgpool2_pool_backend_stats_insert_cnt | INSERT statement counts issued to each backend |
pgpool2_pool_backend_stats_update_cnt | UPDATE statement counts issued to each backend |
... | ... |
Grafana is an open source data-visualization web application, which supports Prometheus data source.
This post describes how to use Grafana to visualize the metrics collected by Pgpool-II Exporter.
Prerequisites
Before you start, ensure that:
- Pgpool-II Exporter and Prometheus server are running.
- Prometheus server is configured for scraping Pgpool-II Exporter metrics.
For details, refer to the previous post.
Configuring Grafana
Pgpool-II community provides a Grafana Dashboard template for Pgpool-II Exporter. Download this dashboard and import it into your Grafana.
After importing the dashboard from JSON file, you can find the Pgpool-II dashboard in your Grafana Home page.
Comments
Post a Comment