Description

It monitors Postgres DB agent metrics like user table rowsdead, database deadlocks, locks granted.

Prerequisites

The database you want to monitor should connect from the Gateway. Gateway Management profile should be added to the device. Database type credentials should be added against the device in the portal. While applying the template, the database port, Database Name, connection timeout need to be specified.

Metric Parameters

Metric Parameters
ParameterDescription
Frequency
  • Frequency is the interval in which you want to probe and collect metric data from the target device/resource
  • Frequency is defined in minutes (min).
  • Warning ThresholdIf the metric value satisfies the condition defined along with Warning Threshold value, then a notification is sent to the user.
    Critical ThresholdIf the metric value satisfies the condition defined along with Critical Threshold value, then a notification is sent to the user.
    AlertThe alert value can be set to either Yes or No. If it is Yes, then an alert message is sent to the user.

    Metrics

    postgresql.usertable.rowsdead

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionThis query gives the number of dead rows (tuples) in the table.
    CategoryApplication
    Collector TypeGateway
    Monitor NameG2 PostgreSQL Database Locks Monitor
    UnitNULL

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency5Manual
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    postgresql.database.deadlocks

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionNumber of deadlocks detected in this database.
    CategoryApplication
    Collector TypeGateway
    Monitor NameG2 PostgreSQL Database Locks Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency5Manual
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    postgresql.locks.granted

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionTrue if lock is held, false if lock is awaited.
    CategoryApplication
    Collector TypeGateway
    Monitor NameG2 PostgreSQL Database Locks Monitor
    UnitNULL

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency5Manual
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph