The PostgreSQL plug-in uses these measurement classes.

DataBaseMeasurementPlugin.java

ResourceMeasurement.java

TableMeasurementPlugin.java

PostgreSQL.java

ServerMeasurement.java - uses SIGAR to obtain operating system statistics such as CPU and memory usage.

Some metrics,such as Index Space Used and Database Space Used are only incremented after a PostgreSQL vacuum or analyze operation is performed.