Chapter 47. Metrics

Table of Contents

47.1. Viewing Main Metrics
47.2. Creating an SQL Metric
47.3. Viewing SQL Metrics
47.4. Editing an SQL Metric
47.5. Deleting an SQL Metric

Key performance indicators of the system can be monitored using graphs based on metrics collected by pgpro-otel-collector. For the graphs to work properly, you must first install and configure logging and monitoring tools.

You can also access SQL metrics that are provided based on planning statistics and SQL statement execution statistics collected by the pgpro_stats extension.

Important

When creating SQL metrics use queries with aggregate functions, such as COUNT, SUM, and AVG. The instance can fail when using metrics based on queries returning more than one row or separate values, for example, SELECT 1.