# This is the monitoring configuration for PostgreSQL. # Make sure the statistics collector is enabled in your PostgreSQL configuration. # NOTE: This configuration needs to be hand-edited in order to work. # Look for DATABASE_NAME, STATS_USER, STATS_PASS, POSTGRESQL_HOST and POSTGRESQL_PORT to adjust your configuration file. LoadPlugin postgresql # Each database needs a separate Database section. # Replace DATABASE_NAME in the Database section with the name of the database. # Host and port are only used for TCP/IP connections. # Leaving them out indicates you wish to connect via domain sockets. # When using non-standard PostgreSQL configurations, replace the below with ##Host "POSTGRESQL_HOST" ##Port "POSTGRESQL_PORT" #Host "localhost" #Port "5432" User "STATS_USER" Password "STATS_PASS" Query backends Query transactions Query queries Query table_states Query disk_io Query disk_usage