Add metrics for tracking cache hit ratios
This commit is contained in:
@@ -673,6 +673,98 @@ zabbix_export:
|
||||
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}'
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user