Skip to content
Snippets Groups Projects
Commit 0f87c9d6 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

2 more psql templates

parent eef163cb
No related branches found
No related tags found
1 merge request!52 more psql templates
; ====================================================================== ; ======================================================================
; ;
; PSQLSERVER activity ; PSQLSERVER activity
; ;
; ---------------------------------------------------------------------- ; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version ; 2023-06-08 <axel.hahn@unibe.ch> initial version
...@@ -39,4 +39,3 @@ other = "alias($metric$, 'Other')" ...@@ -39,4 +39,3 @@ other = "alias($metric$, 'Other')"
idle = "alias($metric$, 'Idle incl. idle in transaction')" idle = "alias($metric$, 'Idle incl. idle in transaction')"
fast = "alias($metric$, 'Fastpath function call')" fast = "alias($metric$, 'Fastpath function call')"
active = "alias($metric$, 'Active (values are stacked)')" active = "alias($metric$, 'Active (values are stacked)')"
; ====================================================================== ; ======================================================================
; ;
; PSQLSERVER conflicts ; PSQLSERVER conflicts
; ;
; ---------------------------------------------------------------------- ; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version ; 2023-06-08 <axel.hahn@unibe.ch> initial version
......
; ====================================================================== ; ======================================================================
; ;
; PSQLSERVER activity ; PSQLSERVER actions with db rows
; ;
; ---------------------------------------------------------------------- ; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version ; 2023-06-08 <axel.hahn@unibe.ch> initial version
...@@ -32,16 +32,10 @@ title = Read per sec ...@@ -32,16 +32,10 @@ title = Read per sec
[psqlserverdbrows.metrics_filters] [psqlserverdbrows.metrics_filters]
returned = "$service_name_template$.perfdata.tupreturned.value" returned = "$service_name_template$.perfdata.tupreturned.value"
fetched = "$service_name_template$.perfdata.tupfetched.value" fetched = "$service_name_template$.perfdata.tupfetched.value"
; inserted = "$service_name_template$.perfdata.tupinserted.value"
; updated = "$service_name_template$.perfdata.tupupdated.value"
; deleted = "$service_name_template$.perfdata.tupdeleted.value"
[psqlserverdbrows.functions] [psqlserverdbrows.functions]
returned = "alias($metric$, 'Returned rows (total)')" returned = "alias($metric$, 'Returned rows (total)')"
fetched = "alias($metric$, 'Fetched - rows fetched by index scans')" fetched = "alias($metric$, 'Fetched - rows fetched by index scans')"
; inserted = "alias($metric$, 'inserted')"
; updated = "alias($metric$, 'updated')"
; deleted = "alias($metric$, 'deleted')"
; ---------------------------------------------------------------------- ; ----------------------------------------------------------------------
...@@ -71,6 +65,3 @@ deleted = "$service_name_template$.perfdata.tupdeleted.value" ...@@ -71,6 +65,3 @@ deleted = "$service_name_template$.perfdata.tupdeleted.value"
inserted = "alias($metric$, 'inserted')" inserted = "alias($metric$, 'inserted')"
updated = "alias($metric$, 'updated')" updated = "alias($metric$, 'updated')"
deleted = "alias($metric$, 'deleted')" deleted = "alias($metric$, 'deleted')"
; ----------------------------------------------------------------------
; ======================================================================
;
; PSQLSERVER actions with db rows
;
; ----------------------------------------------------------------------
; 2023-06-09 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserverdisk.graph]
check_command = "Postgres-diskblock"
; blksread=0;; blkshit=470;;
[psqlserverdisk.urlparams]
areaAlpha = "0.2"
; areaMode = "first"
areaMode = "all"
colorList = "cccccc,6699aa"
; ^ ^
; cache read
lineWidth = "2"
min = "0"
yUnitSystem = "binary"
[psqlserverdisk.metrics_filters]
hit = "$service_name_template$.perfdata.blkshit.value"
read = "$service_name_template$.perfdata.blksread.value"
[psqlserverdisk.functions]
; usage = "alias(color($metric$, '#ff5566'), 'Usage (%)')"
hit = "alias($metric$, 'Hits from PostgreSQL buffer cache')"
read = "alias($metric$, 'Physical read disk blocks [per sec]')"
; ======================================================================
;
; PSQLSERVER conflicts
;
; ----------------------------------------------------------------------
; 2023-06-09 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserverproblems.graph]
check_command = "Postgres-problems"
; conflicts=0;; deadlocks=0;; checksumfailures=0;; tempfiles=0;; tempbytes=0;;
[psqlserverproblems.urlparams]
areaAlpha = "0.2"
areaMode = "first"
colorList = "ee8822,ff4444,dd88dd,6699aa"
; ^ ^ ^ ^
; confl. deadlk checks tmpfiles
lineWidth = "2"
min = "0"
yUnitSystem = "binary"
[psqlserverproblems.metrics_filters]
conflicts = "$service_name_template$.perfdata.conflicts.value"
deadlocks = "$service_name_template$.perfdata.deadlocks.value"
checksumfailures = "$service_name_template$.perfdata.checksumfailures.value"
tempfiles = "$service_name_template$.perfdata.tempfiles.value"
; tempbytes = "$service_name_template$.perfdata.tempbytes.value"
[psqlserverproblems.functions]
conflicts = "alias($metric$, 'conflicts - Number of queries canceled due to conflicts with recovery')"
deadlocks = "alias($metric$, '# of deadlocks')"
checksumfailures = "alias($metric$, '# of data page checksum failures')"
tempfiles = "alias($metric$, 'Number of temporary files created by queries')"
; tempbytes = "alias($metric$, 'Total amount of data written to temporary files by queries')"
; ----------------------------------------------------------------------
; graph 2
; ----------------------------------------------------------------------
[psqlserverproblems2.graph]
check_command = "Postgres-problems"
; conflicts=0;; deadlocks=0;; checksumfailures=0;; tempfiles=0;; tempbytes=0;;
[psqlserverproblems2.urlparams]
areaAlpha = "0.2"
areaMode = "first"
colorList = "6699aa"
; ^
; tmpbyte
lineWidth = "2"
min = "0"
yUnitSystem = "binary"
[psqlserverproblems2.metrics_filters]
tempbytes = "$service_name_template$.perfdata.tempbytes.value"
[psqlserverproblems2.functions]
tempbytes = "alias($metric$, 'Total amount of data written to temporary files by queries')"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment