zabbix_export: version: '7.0' template_groups: - uuid: b9390195ecad4986968746a2a9b56354 name: 'My Templates' templates: - uuid: 5e4ccbbfed424b968a4b7fc22bd4ca1e template: 'PostgreSQL by pgmon' name: 'PostgreSQL by pgmon' description: 'Monitor PostgreSQL using pgmon' groups: - name: 'My Templates' items: - uuid: cc4a50ca681b4c4fb8c1c98f4bc81c96 name: 'Max Frozen MXID Age' type: DEPENDENT key: pgmon.age.mxid delay: '0' history: 90d description: 'Maximum age of any frozen MXID in any database' preprocessing: - type: JSONPATH parameters: - $.mxid_age - type: MATCHES_REGEX parameters: - '^[0-9]+$' master_item: key: 'pgmon[max_frozen_age]' tags: - tag: Application value: PostgreSQL - uuid: 2fa86d8c4a3a481e856a9414c5c70216 name: 'Max Frozen XID Age' type: DEPENDENT key: pgmon.age.xid delay: '0' history: 90d description: 'Maximum age of any frozen XID in any database' preprocessing: - type: JSONPATH parameters: - $.xid_age - type: MATCHES_REGEX parameters: - '^[0-9]+$' master_item: key: 'pgmon[max_frozen_age]' tags: - tag: Application value: PostgreSQL - uuid: de1fa757395440118026f4c7a7c4ebbe name: 'PostgreSQL latest supported version' type: DEPENDENT key: pgmon.release.latest delay: '0' preprocessing: - type: JSONPATH parameters: - $.latest master_item: key: 'pgmon[latest_version_info]' tags: - tag: Application value: PostgreSQL - uuid: e1a003317bc043908ee0803704a6e1d0 name: 'PostgreSQL release support status' type: DEPENDENT key: pgmon.release.supported delay: '0' preprocessing: - type: JSONPATH parameters: - $.supported master_item: key: 'pgmon[latest_version_info]' tags: - tag: Application value: PostgreSQL triggers: - uuid: 88eac74402d64e7cb853e8cb505b1939 expression: 'last(/PostgreSQL by pgmon/pgmon.release.supported)<>1' name: 'PostgreSQL major release is lo longer supported' priority: INFO - uuid: 763920af8da84db8a9a2667d9653cb21 name: 'PostgreSQL Agent Version' type: HTTP_AGENT key: 'pgmon[agent_version]' delay: 1h history: 90d value_type: TEXT trends: '0' description: 'PostgreSQL monitoring agent version number' url: 'http://localhost:{$AGENT_PORT}/agent_version' tags: - tag: Application value: PostgreSQL - uuid: 06b1d082ed1e4796bc31cc25f7db6326 name: 'PostgreSQL Backend IO Info' type: HTTP_AGENT key: 'pgmon[io_per_backend]' history: '0' value_type: TEXT trends: '0' description: 'Aggregated statistics about I/O activity for different backend types' url: 'http://localhost:{$AGENT_PORT}/io_per_backend' tags: - tag: Application value: PostgreSQL - tag: Type value: Raw - uuid: d890e395fbbc4f2bacbd50e7321fcb9f name: 'PostgreSQL latest version info' type: HTTP_AGENT key: 'pgmon[latest_version_info]' delay: 12h history: '0' value_type: TEXT trends: '0' description: 'Information about the latest PostgreSQL version in the current series' url: 'http://localhost:{$AGENT_PORT}/latest_version_info' tags: - tag: Application value: PostgreSQL - tag: Type value: Raw - uuid: 8706eccb7edc4fa394f552fc31f401a9 name: 'PostgreSQL ID Age Info' type: HTTP_AGENT key: 'pgmon[max_frozen_age]' delay: 5m history: '0' value_type: TEXT trends: '0' description: 'Maximum age of any frozen XID and MXID in any database' url: 'http://localhost:{$AGENT_PORT}/max_frozen_age' tags: - tag: Application value: PostgreSQL - tag: Type value: Raw - uuid: ee88f5f4d2384f97946d049af5af4502 name: 'PostgreSQL version' type: HTTP_AGENT key: 'pgmon[version]' delay: 1h history: 90d description: 'PostgreSQL Server version number' preprocessing: - type: MATCHES_REGEX parameters: - '^[0-9]+$' url: 'http://localhost:{$AGENT_PORT}/version' tags: - tag: Application value: PostgreSQL discovery_rules: - uuid: 085de335305e435dbb4439bd52e0d35d name: 'Discover Databases' type: HTTP_AGENT key: pgmon_discover_dbs delay: 10m filter: conditions: - macro: '{#DBNAME}' value: ^template0$ operator: NOT_MATCHES_REGEX formulaid: A lifetime: 30d enabled_lifetime_type: DISABLE_NEVER item_prototypes: - uuid: a30babe4a6f4440bba2a3ee46eff7ce2 name: 'Time spent executing statements on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[active_time,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT units: s description: 'Time spent executing SQL statements in this database, in milliseconds (this corresponds to the states active and fastpath function call in pg_stat_activity)' preprocessing: - type: JSONPATH parameters: - $.active_time - type: MULTIPLIER parameters: - '0.001' master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: ea2a9c0db25a478d819cb290e4c734d2 name: 'Number of backends on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[backends,{#DBNAME}]' delay: '0' history: 90d description: 'Number of backends currently connected to this database, or NULL for shared objects. This is the only column in this view that returns a value reflecting current state; all other columns return the accumulated values since the last reset.' preprocessing: - type: JSONPATH parameters: - $.numbackends master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: f115a12170744a449d11c24badfc61db name: 'Blocks hit on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[blks_hit,{#DBNAME}]' delay: '0' history: 90d description: 'Number of times disk blocks were found already in the buffer cache, so that a read was not necessary (this only includes hits in the PostgreSQL buffer cache, not the operating system''s file system cache)' preprocessing: - type: JSONPATH parameters: - $.blks_hit master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 361e6ae0b27344aeb5f7faea46eaab3f name: 'Blocks read on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[blks_read,{#DBNAME}]' delay: '0' history: 90d description: 'Number of disk blocks read in this database' preprocessing: - type: JSONPATH parameters: - $.blks_read master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: b8ed3d0016c04c4d828f34fba2e54456 name: 'Time spent reading blocks on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[blk_read_time,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT units: s description: 'Time spent reading data file blocks by backends in this database, in milliseconds (if track_io_timing is enabled, otherwise zero)' preprocessing: - type: JSONPATH parameters: - $.blk_read_time - type: MULTIPLIER parameters: - '0.001' master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 8c29b1920ebe4bbdaaaeeb23074f0587 name: 'Time spent writing blocks on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[blk_write_time,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT units: s description: 'Time spent writing data file blocks by backends in this database, in milliseconds (if track_io_timing is enabled, otherwise zero)' preprocessing: - type: JSONPATH parameters: - $.blk_write_time - type: MULTIPLIER parameters: - '0.001' master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 33b27a2a9ee4446994d03760a8f8f353 name: 'Total number of checksum failures on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[checksum_failures,{#DBNAME}]' delay: '0' history: 90d description: 'Number of data page checksum failures detected in this database (or on a shared object), or NULL if data checksums are not enabled.' preprocessing: - type: JSONPATH parameters: - $.checksum_failures - type: MATCHES_REGEX parameters: - '^[0-9]+$' error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 45b7fe9cb8514f4ca60a0fef5a651903 name: 'Total number of conflicts on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[conflicts,{#DBNAME}]' delay: '0' history: 90d description: 'Number of queries canceled due to conflicts with recovery in this database. (Conflicts occur only on standby servers; see pg_stat_database_conflicts for details.)' preprocessing: - type: JSONPATH parameters: - $.conflicts master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 402067f4ba8f486ca5881f59f67cbee1 name: 'Total number of deadlocks on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[deadlocks,{#DBNAME}]' delay: '0' history: 90d description: 'Number of deadlocks detected in this database' preprocessing: - type: JSONPATH parameters: - $.deadlocks master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: ef4cc7644dc14969b703cc43db06727e name: 'Time spent in idle transactions on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[idle_in_transaction_time,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT units: s description: 'Time spent idling while in a transaction in this database, in milliseconds (this corresponds to the states idle in transaction and idle in transaction (aborted) in pg_stat_activity)' preprocessing: - type: JSONPATH parameters: - $.idle_in_transaction_time - type: MULTIPLIER parameters: - '0.001' master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: a07d6f6ec90846619296f1637fffd677 name: 'Total number of sessions on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[sessions,{#DBNAME}]' delay: '0' history: 90d description: 'Total number of sessions established to this database' preprocessing: - type: JSONPATH parameters: - $.sessions master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 23efc8770d2f4c93a96b9d4de6780c7a name: 'Total number of abandoned sessions on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[sessions_abandoned,{#DBNAME}]' delay: '0' history: 90d description: 'Number of database sessions to this database that were terminated because connection to the client was lost' preprocessing: - type: JSONPATH parameters: - $.sessions_abandoned master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: e95b7ade648743dba6427304feca1a8c name: 'Total number of fatal sessions on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[sessions_fatal,{#DBNAME}]' delay: '0' history: 90d description: 'Number of database sessions to this database that were terminated by fatal errors' preprocessing: - type: JSONPATH parameters: - $.sessions_fatal master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 87f773582b5147aeadd14f38da2dbc29 name: 'Total number of terminated sessions on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[sessions_killed,{#DBNAME}]' delay: '0' history: 90d description: 'Number of database sessions to this database that were terminated by operator intervention' preprocessing: - type: JSONPATH parameters: - $.sessions_killed master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 83bb18e4bcd54c1f8ef10c56a5cd9a47 name: 'Total temp file size on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[temp_bytes,{#DBNAME}]' delay: '0' history: 90d units: b description: 'Total amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp_files setting.' preprocessing: - type: JSONPATH parameters: - $.temp_bytes master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 936c1178c6c04a8caf882308b2cbbd10 name: 'Total number of temp files on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[temp_files,{#DBNAME}]' delay: '0' history: 90d description: 'Number of temporary files created by queries in this database. All temporary files are counted, regardless of why the temporary file was created (e.g., sorting or hashing), and regardless of the log_temp_files setting.' preprocessing: - type: JSONPATH parameters: - $.temp_files master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 2fcec7a5c0ee4fd6a7356a58fa9a44f8 name: 'Tuples deleted on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[tup_deleted,{#DBNAME}]' delay: '0' history: 90d description: 'Number of rows deleted by queries in this database' preprocessing: - type: JSONPATH parameters: - $.tup_deleted master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: bb453280f88e4442ba0f733a50b40dd0 name: 'Tuples fetched by index scans on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[tup_fetched,{#DBNAME}]' delay: '0' history: 90d description: 'Number of live rows fetched by index scans in this database' preprocessing: - type: JSONPATH parameters: - $.tup_fetched master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: a1d1fa5a51fa4c228aa934e19c9c9f1d name: 'Tuples inserted on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[tup_inserted,{#DBNAME}]' delay: '0' history: 90d description: 'Number of rows inserted by queries in this database' preprocessing: - type: JSONPATH parameters: - $.tup_inserted master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 009f2d0268f24b1996611837956f20e5 name: 'Tuples returned by sequential scans on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[tup_returned,{#DBNAME}]' delay: '0' history: 90d description: 'Number of live rows fetched by sequential scans and index entries returned by index scans in this database' preprocessing: - type: JSONPATH parameters: - $.tup_returned master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 46344f38be2f40faa45b9e9a2fce5273 name: 'Tuples updated on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[tup_updated,{#DBNAME}]' delay: '0' history: 90d description: 'Number of rows updated by queries in this database' preprocessing: - type: JSONPATH parameters: - $.tup_updated master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 3886a2b0df3b481f98a15b38502522ab name: 'Total number of commits on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[xact_commit,{#DBNAME}]' delay: '0' history: 90d description: 'Number of transactions in this database that have been committed' preprocessing: - type: JSONPATH parameters: - $.xact_commit master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 5716033b216445fbb895dc5b546c003d name: 'Total number of rollbacks on {#DBNAME}' type: DEPENDENT key: 'pgmon_db[xact_rollback,{#DBNAME}]' delay: '0' history: 90d description: 'Number of transactions in this database that have been rolled back' preprocessing: - type: JSONPATH parameters: - $.xact_rollback master_item: key: 'pgmon_db_stats[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: a67f50d2a3fd44f98e79bb98158bfe10 name: 'Tuples fetched by index scans on {#DBNAME} - 1h delta' type: CALCULATED key: 'pgmon_db_delta[tup_fetched,1h,{#DBNAME}]' delay: 10m history: 90d params: 'last(//pgmon_db[tup_fetched,{#DBNAME}]) - last(//pgmon_db[tup_fetched,{#DBNAME}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Calculated - uuid: a81ba5a7c96d40bca9cc0861da574b49 name: 'Tuples fetched by index scans on {#DBNAME} - 1m delta' type: CALCULATED key: 'pgmon_db_delta[tup_fetched,1m,{#DBNAME}]' history: 90d params: 'last(//pgmon_db[tup_fetched,{#DBNAME}]) - last(//pgmon_db[tup_fetched,{#DBNAME}], #1:now-1m)' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Calculated - uuid: 3bfa9b7db9394b6d9e0cac6255524f50 name: 'Tuples fetched by index scans on {#DBNAME} - 5m delta' type: CALCULATED key: 'pgmon_db_delta[tup_fetched,5m,{#DBNAME}]' history: 90d params: 'last(//pgmon_db[tup_fetched,{#DBNAME}]) - last(//pgmon_db[tup_fetched,{#DBNAME}], #1:now-5m)' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Calculated - uuid: 261e83e1e87c42d587a9409a8a26f971 name: 'Tuples returned by sequential scans on {#DBNAME} - 1h delta' type: CALCULATED key: 'pgmon_db_delta[tup_returned,1h,{#DBNAME}]' delay: 10m history: 90d params: 'last(//pgmon_db[tup_returned,{#DBNAME}]) - last(//pgmon_db[tup_returned,{#DBNAME}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Calculated - uuid: e46c4ec2a21d48288337b90549fbf757 name: 'Tuples returned by sequential scans on {#DBNAME} - 1m delta' type: CALCULATED key: 'pgmon_db_delta[tup_returned,1m,{#DBNAME}]' delay: 10m history: 90d params: 'last(//pgmon_db[tup_returned,{#DBNAME}]) - last(//pgmon_db[tup_returned,{#DBNAME}], #1:now-1m)' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Calculated - uuid: 26a42b55d7f949588f0739388ff52831 name: 'Tuples returned by sequential scans on {#DBNAME} - 5m delta' type: CALCULATED key: 'pgmon_db_delta[tup_returned,5m,{#DBNAME}]' delay: 10m history: 90d params: 'last(//pgmon_db[tup_returned,{#DBNAME}]) - last(//pgmon_db[tup_returned,{#DBNAME}], #1:now-5m)' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Calculated - uuid: bb0690e123e94e35a9bbd0f05ee322b4 name: 'Database Hit Ratios for {#DBNAME}' type: HTTP_AGENT key: 'pgmon_db_hit_ratios[{#DBNAME}]' history: '0' value_type: TEXT trends: '0' url: 'http://localhost:{$AGENT_PORT}/hit_ratios' query_fields: - name: dbname value: '{#DBNAME}' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Raw - uuid: e0edbaf6f98249a6b357ade2ab41a76a name: 'Average heap hit ratio on {#DBNAME}' type: DEPENDENT key: 'pgmon_db_hit_ratio[heap,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT description: 'The cache (shared_buffers) hit ratio for heap entries for the given database' preprocessing: - type: JSONPATH parameters: - $.avg_heap_hit_ratio master_item: key: 'pgmon_db_hit_ratios[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: e4956d433a47455ca0c00d67a0f59355 name: 'Average index hit ratio on {#DBNAME}' type: DEPENDENT key: 'pgmon_db_hit_ratio[index,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT description: 'The cache (shared_buffers) hit ratio for index entries for the given database' preprocessing: - type: JSONPATH parameters: - $.avg_idx_hit_ratio master_item: key: 'pgmon_db_hit_ratios[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 0335267c14a8410a80a16b38167efcb3 name: 'Average toast hit ratio on {#DBNAME}' type: DEPENDENT key: 'pgmon_db_hit_ratio[toast,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT description: 'The cache (shared_buffers) hit ratio for heap entries for the given database' preprocessing: - type: JSONPATH parameters: - $.avg_toast_hit_ratio master_item: key: 'pgmon_db_hit_ratios[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 3f7da45e351443528c6c36145d38f9b8 name: 'Average toast index hit ratio on {#DBNAME}' type: DEPENDENT key: 'pgmon_db_hit_ratio[toast_index,{#DBNAME}]' delay: '0' history: 90d value_type: FLOAT description: 'The cache (shared_buffers) hit ratio for toast index entries for the given database' preprocessing: - type: JSONPATH parameters: - $.avg_tidx_hit_ratio master_item: key: 'pgmon_db_hit_ratios[{#DBNAME}]' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - uuid: 492b3cac15f348c2b85f97b69c114d1b name: 'Database Stats for {#DBNAME}' type: HTTP_AGENT key: 'pgmon_db_stats[{#DBNAME}]' history: '0' value_type: TEXT trends: '0' url: 'http://localhost:{$AGENT_PORT}/db_stats' query_fields: - name: dbname value: '{#DBNAME}' tags: - tag: Application value: PostgreSQL - tag: Database value: '{#DBNAME}' - tag: Type value: Raw graph_prototypes: - uuid: 1f7de43b77714f819e61c31273712b70 name: 'DML Totals for {#DBNAME}' graph_items: - color: 199C0D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[tup_deleted,{#DBNAME}]' - sortorder: '1' color: F63100 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[tup_inserted,{#DBNAME}]' - sortorder: '2' color: 2774A4 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[tup_updated,{#DBNAME}]' - uuid: aaec1de6f2314cbd875980fc1be3a2db name: 'Sessions for {#DBNAME}' graph_items: - color: 199C0D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[sessions_fatal,{#DBNAME}]' - sortorder: '1' color: F63100 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[xact_rollback,{#DBNAME}]' - sortorder: '2' color: 2774A4 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[sessions,{#DBNAME}]' - sortorder: '3' color: F7941D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[sessions_killed,{#DBNAME}]' - uuid: a08d60bd0ffb4f90b5411d30a057a85e name: 'Temp Files for {#DBNAME}' graph_items: - color: 199C0D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[temp_files,{#DBNAME}]' - sortorder: '1' color: F63100 yaxisside: RIGHT calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[temp_bytes,{#DBNAME}]' - uuid: 4949cdfbda614af796a2856fdfa9ac3f name: 'Time breakdown for {#DBNAME}' graph_items: - color: 199C0D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[active_time,{#DBNAME}]' - sortorder: '1' color: F63100 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[idle_in_transaction_time,{#DBNAME}]' - sortorder: '2' color: 2774A4 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[blk_read_time,{#DBNAME}]' - sortorder: '3' color: F7941D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_db[blk_write_time,{#DBNAME}]' url: 'http://localhost:{$AGENT_PORT}/discover_dbs' lld_macro_paths: - lld_macro: '{#DBNAME}' path: $.dbname - uuid: 6afbe12fb9f54fa2ad29d647429eb16e name: 'Discover I/O Backend Types' type: DEPENDENT key: pgmon_discover_io_backend_types delay: '0' item_prototypes: - uuid: b1ac2e56b30f4812bf33ce973ef16b10 name: 'I/O Evictions by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[evictions,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].evictions.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: bde8e6c28e714be58fa963a395e14619 name: 'I/O Extends by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[extends,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].extends.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 5ce7a815c19241a6a398e17539cca1d4 name: 'I/O fsyncs by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[fsyncs,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].fsyncs.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 3be8cb08b6bc42f7888d8d7877ab759f name: 'I/O Hits by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[hits,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].hits.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: e28566682196415fb3bdad9d9a294ae9 name: 'I/O Reads by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[reads,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].reads.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: e5e9b21c7f7649b284a8ca5b4502cb96 name: 'I/O Reuses by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[reuses,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].reuses.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 6de5bc1a98dc4d8da23ac0a90983c8aa name: 'I/O Writebacks by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[writebacks,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].writebacks.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 87d09d3891c145a898050d390ea7f16e name: 'I/O Writes by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend[writes,{#BACKEND_TYPE}]' delay: '0' preprocessing: - type: JSONPATH parameters: - '$[?(@.backend_type == "{#BACKEND_TYPE}")].writes.first()' master_item: key: 'pgmon[io_per_backend]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 1587592caf694d91ba9457cafaca7761 name: 'I/O Evictions by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[evictions,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[evictions,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[evictions,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 637b0601458147b5b72bc40ab22b2117 name: 'I/O Evictions Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[evictions,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[evictions,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: c7ed8e1bcb0945ffa2a36b06ea5fe0c5 name: 'I/O Extends by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[extends,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[extends,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[extends,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 855cbbc83d884b00a6fea457f8e09806 name: 'I/O Extends Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[extends,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[extends,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 20c6135bb6c8491b9ca68fa506232b04 name: 'I/O fsyncs by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[fsyncs,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[fsyncs,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[fsyncs,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 7391c372d1704f21b314379c2fe5bb64 name: 'I/O fsyncs Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[fsyncs,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[fsyncs,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: ab8d0766bbf64db3bb09f9442d268a83 name: 'I/O Hits by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[hits,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[hits,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[hits,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: be9aa056b9364c12a8809d5dd3af8387 name: 'I/O Hits Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[hits,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[hits,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 0c42a40a263948dda4464856747ac6ef name: 'I/O Reads by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[reads,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[reads,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[reads,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 01bc131aaec448e6aafb7ef13d1ea5ed name: 'I/O Reads Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[reads,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[reads,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 740d5c84be6e4b99b4ca3513b6c6c5ea name: 'I/O Reuses by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[reuses,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[reuses,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[reuses,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 8cbc16fc472a44d5945498285e8407be name: 'I/O Reuses Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[reuses,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[reuses,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 2e796f4c75a94967a0b11a37a2d64726 name: 'I/O Writebacks by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[writebacks,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[writebacks,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[writebacks,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 52d2536db79047948893ccb764b2a220 name: 'I/O Writebacks Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[writebacks,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[writebacks,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 6a741d3b857b48eea0e1a4d1deea7183 name: 'I/O Writes by {#BACKEND_TYPE} - 1h delta' type: CALCULATED key: 'pgmon_io_backend_delta[writes,1h,{#BACKEND_TYPE}]' delay: 10m params: 'last(//pgmon_io_backend[writes,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[writes,{#BACKEND_TYPE}], #1:now-1h)' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO - uuid: 6d10339b08b84a91a931a64050a471cc name: 'I/O Writes Rate by {#BACKEND_TYPE}' type: DEPENDENT key: 'pgmon_io_backend_delta[writes,{#BACKEND_TYPE}]' delay: '0' value_type: FLOAT preprocessing: - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'pgmon_io_backend[writes,{#BACKEND_TYPE}]' tags: - tag: Application value: PostgreSQL - tag: 'Backend Type' value: '{#BACKEND_TYPE}' - tag: Component value: IO graph_prototypes: - uuid: a1d95bcb43624c4abdfcb4aeb7d7d2b0 name: 'Backend I/O for {#BACKEND_TYPE}' graph_items: - color: 199C0D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[evictions,{#BACKEND_TYPE}]' - sortorder: '1' color: F63100 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[extends,{#BACKEND_TYPE}]' - sortorder: '2' color: 2774A4 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[fsyncs,{#BACKEND_TYPE}]' - sortorder: '3' color: F7941D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[hits,{#BACKEND_TYPE}]' - sortorder: '4' color: FC6EA3 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[reads,{#BACKEND_TYPE}]' - sortorder: '5' color: 6C59DC calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[reuses,{#BACKEND_TYPE}]' - sortorder: '6' color: C7A72D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[writebacks,{#BACKEND_TYPE}]' - sortorder: '7' color: BA2A5D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend[writes,{#BACKEND_TYPE}]' - uuid: 24e2e3ec67cd43058c8b6a02d686fc6a name: 'Backend I/O for {#BACKEND_TYPE} - 1h delta' graph_items: - color: 199C0D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[evictions,1h,{#BACKEND_TYPE}]' - sortorder: '1' color: F63100 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[extends,1h,{#BACKEND_TYPE}]' - sortorder: '2' color: 2774A4 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[fsyncs,1h,{#BACKEND_TYPE}]' - sortorder: '3' color: F7941D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[hits,1h,{#BACKEND_TYPE}]' - sortorder: '4' color: FC6EA3 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[reads,1h,{#BACKEND_TYPE}]' - sortorder: '5' color: 6C59DC calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[reuses,1h,{#BACKEND_TYPE}]' - sortorder: '6' color: C7A72D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[writebacks,1h,{#BACKEND_TYPE}]' - sortorder: '7' color: BA2A5D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[writes,1h,{#BACKEND_TYPE}]' - uuid: 815f1a00c19d45a18b10846644710668 name: 'Backend I/O Rates for {#BACKEND_TYPE}' graph_items: - color: 199C0D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[evictions,{#BACKEND_TYPE}]' - sortorder: '1' color: F63100 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[extends,{#BACKEND_TYPE}]' - sortorder: '2' color: 2774A4 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[fsyncs,{#BACKEND_TYPE}]' - sortorder: '3' color: F7941D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[hits,{#BACKEND_TYPE}]' - sortorder: '4' color: FC6EA3 calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[reads,{#BACKEND_TYPE}]' - sortorder: '5' color: 6C59DC calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[reuses,{#BACKEND_TYPE}]' - sortorder: '6' color: C7A72D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[writebacks,{#BACKEND_TYPE}]' - sortorder: '7' color: BA2A5D calc_fnc: ALL item: host: 'PostgreSQL by pgmon' key: 'pgmon_io_backend_delta[writes,{#BACKEND_TYPE}]' master_item: key: 'pgmon[io_per_backend]' lld_macro_paths: - lld_macro: '{#BACKEND_TYPE}' path: $.backend_type preprocessing: - type: JSONPATH parameters: - '$[:]' - uuid: 8ec029d577ae4872858e2e5cfd1cc40e name: 'Discover Replication' type: HTTP_AGENT key: pgmon_discover_rep delay: 10m lifetime: 30d enabled_lifetime_type: DISABLE_NEVER item_prototypes: - uuid: 3a5a60620e6a4db694e47251148d82f5 name: 'Flush lag for {#REPID}' type: DEPENDENT key: 'pgmon_rep[flush_lag,repid={#REPID}]' delay: '0' history: 90d value_type: FLOAT description: 'Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written and flushed it (but not yet applied it). This can be used to gauge the delay that synchronous_commit level on incurred while committing if this server was configured as a synchronous standby.' preprocessing: - type: JSONPATH parameters: - $.flush_lag master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: 624f8f085a3642c9a10a03361c17763d name: 'Last flush LSN for {#REPID}' type: DEPENDENT key: 'pgmon_rep[flush_lsn,repid={#REPID}]' delay: '0' history: 90d value_type: TEXT trends: '0' description: 'Last write-ahead log location flushed to disk by this standby server' preprocessing: - type: JSONPATH parameters: - $.flush_lsn master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: 442a0f4baa224ad69fd883879e5c768b name: 'Replay lag for {#REPID}' type: DEPENDENT key: 'pgmon_rep[replay_lag,repid={#REPID}]' delay: '0' history: 90d value_type: FLOAT description: 'Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written, flushed and applied it. This can be used to gauge the delay that synchronous_commit level remote_apply incurred while committing if this server was configured as a synchronous standby.' preprocessing: - type: JSONPATH parameters: - $.replay_lag master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: fe1bed51845d4694bae8f53deed4846d name: 'Last replay LSN for {#REPID}' type: DEPENDENT key: 'pgmon_rep[replay_lsn,repid={#REPID}]' delay: '0' history: 90d value_type: TEXT trends: '0' description: 'Last write-ahead log location replayed into the database on this standby server' preprocessing: - type: JSONPATH parameters: - $.replay_lsn master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: 68c179d0e33f45f9bf82d2d4125763f0 name: 'Last sent LSN for {#REPID}' type: DEPENDENT key: 'pgmon_rep[sent_lsn,repid={#REPID}]' delay: '0' history: 90d value_type: TEXT trends: '0' description: 'Last write-ahead log location sent on this connection' preprocessing: - type: JSONPATH parameters: - $.sent_lsn master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: be57b23dc0ce48a7a000a207c9868855 name: 'Replication state for {#REPID}' type: DEPENDENT key: 'pgmon_rep[state,repid={#REPID}]' delay: '0' history: 90d value_type: TEXT trends: '0' description: | Current WAL sender state. Possible values are: * startup: This WAL sender is starting up. * catchup: This WAL sender's connected standby is catching up with the primary. * streaming: This WAL sender is streaming changes after its connected standby server has caught up with the primary. * backup: This WAL sender is sending a backup. * stopping: This WAL sender is stopping. preprocessing: - type: JSONPATH parameters: - $.state master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: c056cc1202b7412d89bf3927c2858248 name: 'Write lag for {#REPID}' type: DEPENDENT key: 'pgmon_rep[write_lag,repid={#REPID}]' delay: '0' history: 90d value_type: FLOAT description: 'Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written it (but not yet flushed it or applied it). This can be used to gauge the delay that synchronous_commit level remote_write incurred while committing if this server was configured as a synchronous standby.' preprocessing: - type: JSONPATH parameters: - $.write_lag master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: 57fb03cf63af4b0a91d8e36d6ff64d30 name: 'Last write LSN for {#REPID}' type: DEPENDENT key: 'pgmon_rep[write_lsn,repid={#REPID}]' delay: '0' history: 90d value_type: TEXT trends: '0' description: 'Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written it (but not yet flushed it or applied it). This can be used to gauge the delay that synchronous_commit level remote_write incurred while committing if this server was configured as a synchronous standby.' preprocessing: - type: JSONPATH parameters: - $.write_lsn master_item: key: 'pgmon_rep_stats[{#REPID}]' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - uuid: efbe11f37c2f499488bdc5853c3d89e6 name: 'Replication Stats for {#REPID}' type: HTTP_AGENT key: 'pgmon_rep_stats[{#REPID}]' history: '0' value_type: TEXT trends: '0' url: 'http://localhost:{$AGENT_PORT}/rep_stats' query_fields: - name: repid value: '{#REPID}' tags: - tag: Application value: PostgreSQL - tag: Component value: Replication - tag: Database value: '{#DBNAME}' - tag: Type value: Raw url: 'http://localhost:{$AGENT_PORT}/discover_rep' lld_macro_paths: - lld_macro: '{#CLIENT_ADDR}' path: $.client_addr - lld_macro: '{#REPID}' path: $.repid - lld_macro: '{#STATE}' path: $.state - uuid: e22315b0295d4b43aa6b6611ede13e84 name: 'Discover Replication Slots' type: HTTP_AGENT key: pgmon_discover_slots delay: 10m item_prototypes: - uuid: 536c5f82e3074ddfbfd842b3a2e8d46c name: 'Slot {#SLOT_NAME} - Confirmed Flushed Bytes Lag' type: DEPENDENT key: 'pgmon_slot[confirmed_flush_bytes,{#SLOT_NAME}]' delay: '0' description: 'The lag in bytes for the slot. This metric is how far behind the consumer has reported to be with regard to flushing writes to disk (or equivalent).' preprocessing: - type: JSONPATH parameters: - $.confirmed_flush_bytes master_item: key: 'pgmon_slot_stats[{#SLOT_NAME}]' tags: - tag: Application value: PostgreSQL - tag: Slot value: '{#SLOT_NAME}' - uuid: f239449d8e9e4ce79965528400f1669a name: 'Slot {#SLOT_NAME} - Restart Bytes Lag' type: DEPENDENT key: 'pgmon_slot[restart_bytes,{#SLOT_NAME}]' delay: '0' description: 'The lag in bytes for the slot. This metric is how far behind the restart location is, as reported by the consumer.' preprocessing: - type: JSONPATH parameters: - $.restart_bytes master_item: key: 'pgmon_slot_stats[{#SLOT_NAME}]' tags: - tag: Application value: PostgreSQL - tag: Slot value: '{#SLOT_NAME}' - uuid: a9f53efdce0a4bdc970925f8588e01c5 name: 'Replication Slot Stats for {#SLOT_NAME}' type: HTTP_AGENT key: 'pgmon_slot_stats[{#SLOT_NAME}]' history: '0' value_type: TEXT trends: '0' url: 'http://localhost:{$AGENT_PORT}/slot_stats' query_fields: - name: slot value: '{#SLOT_NAME}' tags: - tag: Application value: PostgreSQL - tag: Slot value: '{#SLOT_NAME}' - tag: Type value: Raw url: 'http://localhost:{$AGENT_PORT}/discover_slots' lld_macro_paths: - lld_macro: '{#ACTIVE}' path: $.active - lld_macro: '{#DATABASE}' path: $.database - lld_macro: '{#PLUGIN}' path: $.plugin - lld_macro: '{#SLOT_NAME}' path: $.slot_name - lld_macro: '{#TEMPORARY}' path: $.temporary macros: - macro: '{$AGENT_PORT}' value: '5400' description: 'The port the agent listens on' dashboards: - uuid: a818cfb97d654c75a3d70ae7f942bb89 name: 'PostgreSQL - Overview' pages: - widgets: - type: graphprototype name: 'Time Breakdown' width: '39' height: '5' fields: - type: INTEGER name: columns value: '1' - type: GRAPH_PROTOTYPE name: graphid.0 value: host: 'PostgreSQL by pgmon' name: 'Time breakdown for {#DBNAME}' - type: STRING name: reference value: ZAWWD - type: graphprototype name: 'Session Breakdown' 'y': '5' width: '39' height: '6' fields: - type: INTEGER name: columns value: '1' - type: GRAPH_PROTOTYPE name: graphid.0 value: host: 'PostgreSQL by pgmon' name: 'Sessions for {#DBNAME}' - type: STRING name: reference value: WBVFA - type: graphprototype name: 'Temp Files' x: '39' width: '33' height: '5' fields: - type: INTEGER name: columns value: '1' - type: GRAPH_PROTOTYPE name: graphid.0 value: host: 'PostgreSQL by pgmon' name: 'Temp Files for {#DBNAME}' - type: STRING name: reference value: CFQAN - type: graphprototype name: 'DML Totals' x: '39' 'y': '5' width: '33' height: '6' fields: - type: INTEGER name: columns value: '1' - type: GRAPH_PROTOTYPE name: graphid.0 value: host: 'PostgreSQL by pgmon' name: 'DML Totals for {#DBNAME}' - type: STRING name: reference value: XSCMZ triggers: - uuid: 94ce93c828aa46b4bd4f3732fc7090c6 expression: 'last(/PostgreSQL by pgmon/pgmon.release.latest) - last(/PostgreSQL by pgmon/pgmon[version]) >= 1' name: 'PostgreSQL is at least 1 version behind' priority: INFO dependencies: - name: 'PostgreSQL is at least 2 version behind' expression: 'last(/PostgreSQL by pgmon/pgmon.release.latest) - last(/PostgreSQL by pgmon/pgmon[version]) >= 2' - uuid: 2701bcd1223c4ee787f3eca30288e6c6 expression: 'last(/PostgreSQL by pgmon/pgmon.release.latest) - last(/PostgreSQL by pgmon/pgmon[version]) >= 2' name: 'PostgreSQL is at least 2 version behind' priority: INFO dependencies: - name: 'PostgreSQL is at least 3 version behind' expression: 'last(/PostgreSQL by pgmon/pgmon.release.latest) - last(/PostgreSQL by pgmon/pgmon[version]) >= 3' - uuid: 3c9adbe8b6f84b3788c6a3e513075df5 expression: 'last(/PostgreSQL by pgmon/pgmon.release.latest) - last(/PostgreSQL by pgmon/pgmon[version]) >= 3' name: 'PostgreSQL is at least 3 version behind' priority: INFO