53.3. Viewing Profiler Graphs #
Before performing this instruction:
To view profiler graphs:
Go to profiler graphs in one of the following ways:
Using the monitoring section:
In the navigation panel, go to Monitoring → Profiler.
From Instance, select the instance.
Using the configuration section of an instance:
In the navigation panel, go to Infrastructure → Instances.
Click the name of the instance.
In the navigation panel, go to Profiler.
From Database, select the database.
From Server, select the profiler server.
(Optional) In Period, specify the time period.
If you do not specify a value, the profiler graphs are displayed for the entire time range.
Click Select.
The following profiler graphs will be displayed:
PostgreSql Instance: tuples: Operations with rows per second in the database. Available metrics:
Tuples returned: The number of live rows fetched by sequential scans and index entries returned by index scans.
This metric corresponds to the
tup_returnedcolumn of thepg_stat_databaseview.Tuples fetched: The number of live rows fetched by index scans.
This metric corresponds to the
tup_fetchedcolumn of thepg_stat_databaseview.Tuples inserted: The number of rows inserted by queries.
This metric corresponds to the
tup_insertedcolumn of thepg_stat_databaseview.Tuples updated: The number of rows updated by queries.
This metric corresponds to the
tup_updatedcolumn of thepg_stat_databaseview.Tuples deleted: The number of rows deleted by queries.
This metric corresponds to the
tup_deletedcolumn of thepg_stat_databaseview.
For more information about these metrics, refer to the official Postgres Pro documentation on the
pg_stat_databaseview.PostgreSql bgwriter buffers: Operations with buffers per second in the database. Available metrics:
Checkpoints buffers written: The number of buffers written during checkpoints and restartpoints.
This metric corresponds to the
buffers_writtencolumn of thepg_stat_checkpointerview.Background buffers written: The number of buffers written by the background writer.
This metric corresponds to the
buffers_cleancolumn of thepg_stat_bgwriterview.Backend buffers written: The number of buffers written directly by the backend.
In Postgres Pro 16, this metric corresponds to the
buffers_backendcolumn of thepg_stat_bgwriterview. In Postgres Pro 17, this metric is collected by thepg_stat_ioview.Number of buffers allocated: The number of allocated buffers.
This metric corresponds to the
buffers_alloccolumn of thepg_stat_bgwriterview.
For more information about these metrics, refer to the official Postgres Pro documentation on the
pg_stat_bgwriter,pg_stat_io, andpg_stat_checkpointerviews.PostgreSql bgwriter write/sync: Synchronization and writing operations with buffers per second in the database. Available metrics:
Bgwriter interrupts: The number of times the background writer stopped a cleaning scan due to writing too many buffers.
This metric corresponds to the
maxwritten_cleancolumn of thepg_stat_bgwriterview.Backend fsync count: The number of times the backend executed its own
fsynccall. Normally, these calls are executed by the background writer, even when the backend performs its own writes.In Postgres Pro 16 or lower, this metric corresponds to the
buffers_backend_fsynccolumn of thepg_stat_bgwriterview. In Postgres Pro 17, this metric is collected by thepg_stat_ioview.
For more information about these metrics, refer to the official Postgres Pro documentation on
pg_stat_bgwriterandpg_stat_io.PostgreSql checkpoints count: Operations with checkpoints per second in the database. Available metrics:
Scheduled checkpoints: The number of scheduled checkpoints that were completed due to timeout. Scheduled checkpoints can be skipped if the server has been idle since the last checkpoint. Both completed and skipped scheduled checkpoints are counted.
This metric corresponds to the
num_timedcolumn of thepg_stat_checkpointerview.Requested checkpoints: The number of requested checkpoints that were completed.
This metric corresponds to the
num_requestedcolumn of thepg_stat_checkpointerview.
For more information about these metrics, refer to the official Postgres Pro documentation on the
pg_stat_checkpointerview.PostgreSql checkpoints write/sync: The time per second spent writing and synchronizing files during checkpoints in the database. Available metrics:
Checkpoint write time (s): The time in seconds spent writing files to disk while completing checkpoints and restartpoints.
This metric corresponds to the
write_timecolumn of thepg_stat_checkpointerview.Checkpoint sync time (s): The time in seconds spent synchronizing files to disk while completing checkpoints and restartpoints.
This metric corresponds to the
sync_timecolumn of thepg_stat_checkpointerview.
For more information about these metrics, refer to the official Postgres Pro documentation on the
pg_stat_checkpointerview.PostgreSql Instance: events: Operations with events per second in the database. Available metrics:
Conflicts: The number of queries canceled due to conflicts with recovery. Conflicts can occur only on standby servers.
This metric corresponds to the
conflictscolumn of thepg_stat_databaseview.For more information about conflicts, refer to the official Postgres Pro documentation on the
pg_stat_database_conflictsview.Deadlocks: The number of deadlocks.
This metric corresponds to the
deadlockscolumn of thepg_stat_databaseview.Rollbacks: The number of rolled back transactions.
This metric corresponds to the
xact_rollbackcolumn of thepg_stat_databaseview.Commits: The number of committed transactions.
This metric corresponds to the
xact_commitcolumn of thepg_stat_databaseview.
For more information about these metrics, refer to the official Postgres Pro documentation on the
pg_stat_databaseview.PostgreSql: cache hit ratio: This graph displays the Cache hit ratio metric that provides the percentage of the data received from the buffer cache per second in the database.
This metric is based on the
blks_hitandblks_readcolumns of thepg_stat_databaseview and is calculated as follows:blks_hit/ (blks_hit+blks_read)For more information about the
blks_hitandblks_readcolumns, refer to the official Postgres Pro documentation on thepg_stat_databaseview.PostgreSql temp: bytes written: This graph displays the Bytes written metric that provides the amount of data written to temporary files by queries per second in the database. All temporary files are counted, regardless of why they were created and of the
log_temp_filesparameter value.This metric corresponds to the
temp_bytescolumn of thepg_stat_databaseview.For more information about this metric, refer to the official Postgres Pro documentation on the
pg_stat_databaseview.PostgreSql temp: files created: This graph displays the Number of files metric that provides the number of temporary files created by queries per second in the database. All temporary files are counted, regardless of why they were created (sorting, hashing) and of the
log_temp_filesparameter value.This metric corresponds to the
temp_filescolumn of thepg_stat_databaseview.For more information about this metric, refer to the official Postgres Pro documentation on the
pg_stat_databaseview.PostgreSql archive command: Archiving operations with WAL files per second in the database. Available metrics:
WAL segments archived: The number of successfully archived WAL files.
This metric corresponds to the
archived_countcolumn of thepg_stat_archiverview.WAL segments archive failed: The number of failed attempts to archive WAL files.
This metric corresponds to the
failed_countcolumn of thepg_stat_archiverview.
For more information about these metrics, refer to the official Postgres Pro documentation on the
pg_stat_archiverview.PostgreSQL WAL write speed: This graph displays the WAL generated metric that provides the amount of WAL in bytes generated per second in the database.
This metric corresponds to the
wal_bytescolumn of thepg_stat_walview.For more information about this metric, refer to the official Postgres Pro documentation on the
pg_stat_walview.
You can perform the following actions using the icons in the top-right corner of the planner graphs:
To build a report using a graph, click Select the period for the report.
For more information about building a report, refer to Section 53.5.1.
To reset the selected period when building a report, click Reset.
To download the graph in the
PNGformat, click Save as Image.