Report some I/O metrics in bytes

This commit is contained in:
2025-06-30 02:00:06 -04:00
parent fd0a9e1230
commit be84e2b89a
2 changed files with 39 additions and 15 deletions

View File

@@ -924,6 +924,7 @@ zabbix_export:
type: DEPENDENT
key: 'pgmon_io_backend[extends,{#BACKEND_TYPE}]'
delay: '0'
units: B
preprocessing:
- type: JSONPATH
parameters:
@@ -978,6 +979,7 @@ zabbix_export:
type: DEPENDENT
key: 'pgmon_io_backend[reads,{#BACKEND_TYPE}]'
delay: '0'
units: B
preprocessing:
- type: JSONPATH
parameters:
@@ -1014,6 +1016,7 @@ zabbix_export:
type: DEPENDENT
key: 'pgmon_io_backend[writebacks,{#BACKEND_TYPE}]'
delay: '0'
units: B
preprocessing:
- type: JSONPATH
parameters:
@@ -1032,6 +1035,7 @@ zabbix_export:
type: DEPENDENT
key: 'pgmon_io_backend[writes,{#BACKEND_TYPE}]'
delay: '0'
units: B
preprocessing:
- type: JSONPATH
parameters:
@@ -1082,6 +1086,7 @@ zabbix_export:
type: CALCULATED
key: 'pgmon_io_backend_delta[extends,1h,{#BACKEND_TYPE}]'
delay: 10m
units: B/h
params: 'last(//pgmon_io_backend[extends,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[extends,{#BACKEND_TYPE}], #1:now-1h)'
tags:
- tag: Application
@@ -1096,6 +1101,7 @@ zabbix_export:
key: 'pgmon_io_backend_delta[extends,{#BACKEND_TYPE}]'
delay: '0'
value_type: FLOAT
units: Bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
@@ -1178,6 +1184,7 @@ zabbix_export:
type: CALCULATED
key: 'pgmon_io_backend_delta[reads,1h,{#BACKEND_TYPE}]'
delay: 10m
units: B/h
params: 'last(//pgmon_io_backend[reads,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[reads,{#BACKEND_TYPE}], #1:now-1h)'
tags:
- tag: Application
@@ -1192,6 +1199,7 @@ zabbix_export:
key: 'pgmon_io_backend_delta[reads,{#BACKEND_TYPE}]'
delay: '0'
value_type: FLOAT
units: Bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
@@ -1242,6 +1250,7 @@ zabbix_export:
type: CALCULATED
key: 'pgmon_io_backend_delta[writebacks,1h,{#BACKEND_TYPE}]'
delay: 10m
units: B/h
params: 'last(//pgmon_io_backend[writebacks,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[writebacks,{#BACKEND_TYPE}], #1:now-1h)'
tags:
- tag: Application
@@ -1256,6 +1265,7 @@ zabbix_export:
key: 'pgmon_io_backend_delta[writebacks,{#BACKEND_TYPE}]'
delay: '0'
value_type: FLOAT
units: Bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
@@ -1274,6 +1284,7 @@ zabbix_export:
type: CALCULATED
key: 'pgmon_io_backend_delta[writes,1h,{#BACKEND_TYPE}]'
delay: 10m
units: B/h
params: 'last(//pgmon_io_backend[writes,{#BACKEND_TYPE}]) - last(//pgmon_io_backend[writes,{#BACKEND_TYPE}], #1:now-1h)'
tags:
- tag: Application
@@ -1288,6 +1299,7 @@ zabbix_export:
key: 'pgmon_io_backend_delta[writes,{#BACKEND_TYPE}]'
delay: '0'
value_type: FLOAT
units: Bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
@@ -1302,10 +1314,11 @@ zabbix_export:
- tag: Component
value: IO
graph_prototypes:
- uuid: a1d95bcb43624c4abdfcb4aeb7d7d2b0
- uuid: faf1e3f41dd84adba42c414f6efac152
name: 'Backend I/O for {#BACKEND_TYPE}'
graph_items:
- color: 199C0D
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1318,12 +1331,14 @@ zabbix_export:
key: 'pgmon_io_backend[extends,{#BACKEND_TYPE}]'
- sortorder: '2'
color: 2774A4
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
key: 'pgmon_io_backend[fsyncs,{#BACKEND_TYPE}]'
- sortorder: '3'
color: F7941D
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1336,6 +1351,7 @@ zabbix_export:
key: 'pgmon_io_backend[reads,{#BACKEND_TYPE}]'
- sortorder: '5'
color: 6C59DC
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1356,6 +1372,7 @@ zabbix_export:
name: 'Backend I/O for {#BACKEND_TYPE} - 1h delta'
graph_items:
- color: 199C0D
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1368,12 +1385,14 @@ zabbix_export:
key: 'pgmon_io_backend_delta[extends,1h,{#BACKEND_TYPE}]'
- sortorder: '2'
color: 2774A4
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
key: 'pgmon_io_backend_delta[fsyncs,1h,{#BACKEND_TYPE}]'
- sortorder: '3'
color: F7941D
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1386,6 +1405,7 @@ zabbix_export:
key: 'pgmon_io_backend_delta[reads,1h,{#BACKEND_TYPE}]'
- sortorder: '5'
color: 6C59DC
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1406,6 +1426,7 @@ zabbix_export:
name: 'Backend I/O Rates for {#BACKEND_TYPE}'
graph_items:
- color: 199C0D
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1418,12 +1439,14 @@ zabbix_export:
key: 'pgmon_io_backend_delta[extends,{#BACKEND_TYPE}]'
- sortorder: '2'
color: 2774A4
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
key: 'pgmon_io_backend_delta[fsyncs,{#BACKEND_TYPE}]'
- sortorder: '3'
color: F7941D
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'
@@ -1436,6 +1459,7 @@ zabbix_export:
key: 'pgmon_io_backend_delta[reads,{#BACKEND_TYPE}]'
- sortorder: '5'
color: 6C59DC
yaxisside: RIGHT
calc_fnc: ALL
item:
host: 'PostgreSQL by pgmon'