PostgreSQL has a system parameter called max_connections
, which defines the maximum number of allowed connections to the database instance. This custom metric will compute the percentage of active connections relative to the max_connections
setting.
To create this in DPA, create a custom metric of type Single Value and make it look similar to this example: