Global Configuration for monitoring PostgreSQL database
Before you begin
Make sure that you have configured the environment by following the guidelines outlined in Configuring-the-PostgreSQL-KM-in-TrueSight-or-Central-Monitoring-Administration for the global configuration of the PostgreSQL database.
To configure monitoring of PostgreSQL database
- Perform one of the following actions:
- In BMC Helix Operations Management, click Configuration, select Monitor Policies, and click Create.
- In TrueSight Operations Management, click Configuration, select Infrastructure Policies, and click Create Policy.
- In the Monitoring tab, click Add Monitoring Configuration.
To configure the KM, set the following preferences in the Add Monitoring Configuration dialog box:
Monitoring Solution
Monitor Profile
Monitor Type
PostgreSQL Database
PostgreSQL Monitoring
PostgreSQL Global
- In the Global Configurations window, enter the following details:
Field | Description |
Filtering | |
Database filtering options Important: If you monitor all databases by entering the .* regular expression, a large number of metrics are collected. It will lead to a collection of a large number of unwanted metrics and affect your storage also. Therefore, to use the storage spaces judiciously, we recommend that you identify important databases for monitoring and enter the regular expressions that identify only those databases. | |
Override local configuration | Select this checkbox to apply the selected filtering options across all environments. |
Filtering mode | Select this option to include or exclude a database. |
Filtering criteria | Enter the database names or regular expressions to identify the databases to include or exclude from monitoring. Use a comma to separate multiple entries. |
Tablespace filtering options Important: If you monitor all table spaces by entering the .* regular expression, a large number of metrics are collected. It will lead to a collection of a large number of unwanted metrics and affect your storage also. Therefore, to use the storage spaces judiciously, we recommend that you identify important table spaces for monitoring and enter the regular expressions that identify only those table spaces. | |
Override local configuration | Select this checkbox to apply the selected filtering options across all environments. |
Filtering mode | Select if you want to include or exclude a table space. |
Filtering criteria | Enter the table space names or regular expressions to identify the table spaces to include or exclude from monitoring. Use a comma to separate multiple entries. |
Schema filtering options Important: If you monitor all schemas by entering the .* regular expression, a large number of metrics are collected. It will lead to a collection of a large number of unwanted metrics and affect your storage also. Therefore, to use the storage spaces judiciously, we recommend that you identify important schemas for monitoring and enter the regular expressions that identify only those schemas. | |
Override local configuration | Select this checkbox to apply the selected filtering options across all environments. |
Filtering mode | Select this option to include or exclude a schema. |
Filtering criteria | Enter the schema names or regular expressions to identify the schemas to include or exclude from monitoring. Use a comma to separate multiple entries. |
Table filtering options | |
Override local configuration | Select this checkbox to apply the selected filtering options across all environments. |
Filtering option | Select the filtering option from the list of available filtering options. |
Filter by names | |
Filtering mode | Select if you want to include or exclude a table. |
Filtering criteria | Enter the table names or regular expressions to identify the tables to include or exclude from monitoring. Use a comma to separate multiple entries. |
Filter by top n tables | |
Top number of tables | Enter the number of tables to be filtered. This field is mandatory. |
Maximum table instances limit | Enter the maximum number of table instances to filter. This field is mandatory. |
Number of days to keep table instances | Enter the number of days to store the table instances. This field is mandatory. |
Selection Criteria | Select the selection criteria to obtain the top n tables.
|
Index filtering options | |
Override local configuration | Select this checkbox to apply the selected filtering options across all environments. |
Filtering mode | Select this option to include or exclude an index. |
Filtering criteria | Enter the index names or regular expressions to identify the indexes to include or exclude from monitoring. Use a comma to separate multiple entries. |
Filter for top n queries by total wait time Important: For more information, see Configuring Configuration Variables. | |
Total wait time monitoring | Select this option to enable filtering of top n queries by total wait time. |
Top Number of queries | Enter the number of queries that you want to filter for monitoring. This field is mandatory. |
Maximum query instances limit | Enter the maximum number of query instances to filter. This field is mandatory. |
Number of days to keep query instances | Enter the number of days to store the query instance. This field is mandatory. |
Custom SQL queries | |
Enable global Custom SQL queries | Select this check box to apply the added custom SQL queries across all environments. Also, make sure to choose one of the following configuration options from the dropdown menu based on your specific requirements:
|
Execute query on | From the list of instances, select the instance on which you want to execute custom SQL queries:
|
SQL query name | Enter the name for the SQL query. Use the following characters in the environment name: |
PostgreSQL database name | Enter the PostgreSQL database name. You can use regular expressions or comma-separated lists for multiple databases on which you want to run SQL queries. If the specified database is not found on the PostgreSQL server, the SQL query will not be executed. Filtering examples: |
SQL query | Enter the SQL query command. |
Collection time (min) | Enter the SQL query collection time. The default collection time is 1 minute. |
Environment settings | |
Override local configuration | Select this checkbox to apply this setting across all environments. |
Device Mapping Settings | |
Device mapping User defined name | Device mapping enables you to use the selected option as a device name on the Devices page. Select one of the following options to choose as the device name: FQDN: The fully qualified hosting name is used as the device name. The user-defined name cannot contain any special characters. |
Long running duration settings | |
Query (minutes) | Enter the time a query must run before it is considered as a long running query. Long running queries are reported by the Long Running SQL attribute. |
Long running duration settings | Specify the condition for long running queries. For example, if you want to exclude replication or auto vacuum related queries, enter the following condition: query not like '%replication%' or query not like 'auto%' |
Transaction (minutes) | Enter the time a transaction must run before it is considered as a long running transaction. Long transactions are reported by the Long Running Idle Transactions attribute. |
Java Collector Settings | |
Java path | Enter the path to the JRE directory (or the $JAVA_HOME environment variable) on the PATROL Agent host. |
JVM arguments | Enter the optional Java Virtual Machine arguments for the Java collector. |
Collection Settings | |
Availability collection time (min) | Enter the time interval used to check for the availability of the environment for collecting data. The default collection time is 1 minute. |
Data collection time (min) | Enter the data collection time in minutes. The default collection time is 5 minutes. |
Table data collection time (min) | Enter the data collection time in minutes for table. The default table data collection time is 60 minutes. |
Wait time SQL data collection time (min) | Enter the total time interval in minutes to collect or report the value for the wait time SQL attributes. This field is applicable for SQL instance attributes only. The default wait time for SQL data collection is 5 minutes. Important: For more information, see Configuring-configuration-variables. |