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

Merge branch '6010-postgres-monitoring-user' into 'master'

2 more psql templates

See merge request !5
parents a06a1715 7ad1760a
No related branches found
No related tags found
1 merge request!52 more psql templates
; ======================================================================
;
; ONE hosts
;
; Opennebula hosts
;
; ----------------------------------------------------------------------
; 2023-06-12 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[onehost.graph]
check_command = "ONE-hosts"
[onehost.urlparams]
areaAlpha = "0.2"
; areaMode = "first"
areaMode = "stacked"
colorList = "66cc88,888888,ddddee"
; ^ ^ ^
; on other total
lineWidth = "2"
min = "0"
;max = "100"
yUnitSystem = "binary"
[onehost.metrics_filters]
valon = "$service_name_template$.perfdata.on.value"
valother = "$service_name_template$.perfdata.other.value"
valtotal = "$service_name_template$.perfdata.total.value"
[onehost.functions]
valon = "alias($metric$, 'ON')"
valother = "alias($metric$, 'other state')"
valtotal = "alias($metric$, ':hidden:')"
; ======================================================================
;
; ONE vm
;
; Opennebula virtual machines
;
; ----------------------------------------------------------------------
; 2023-06-12 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[onevm.graph]
check_command = "ONE-vms"
[onevm.urlparams]
areaAlpha = "0.2"
; areaMode = "first"
areaMode = "stacked"
colorList = "66cc88,cc66dd,ee8888,888888,6699aa"
; ^ ^ ^ ^ ^
; runn unkn fail other total
lineWidth = "2"
min = "0"
;max = "100"
yUnitSystem = "binary"
[onevm.metrics_filters]
valrunning = "$service_name_template$.perfdata.running.value"
valunknown = "$service_name_template$.perfdata.unknown.value"
valfail = "$service_name_template$.perfdata.fail.value"
valother = "$service_name_template$.perfdata.other.value"
valtotal = "$service_name_template$.perfdata.total.value"
[onevm.functions]
valrunning = "alias($metric$, 'Running')"
valunknown = "alias($metric$, 'Unknown state')"
valfail = "alias($metric$, 'Failed')"
valother = "alias($metric$, 'other state')"
valtotal = "alias($metric$, ':hidden:')"
; ====================================================================== ; ======================================================================
; ;
; PSQLSERVER activity ; PSQLSERVER activity
; ;
; ---------------------------------------------------------------------- ; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version ; 2023-06-08 <axel.hahn@unibe.ch> initial version
; 2023-06-13 <axel.hahn@unibe.ch> hide total graph
; ====================================================================== ; ======================================================================
...@@ -32,11 +33,11 @@ other = "$service_name_template$.perfdata.running-other.value" ...@@ -32,11 +33,11 @@ other = "$service_name_template$.perfdata.running-other.value"
idle = "$service_name_template$.perfdata.running-idle.value" idle = "$service_name_template$.perfdata.running-idle.value"
fast = "$service_name_template$.perfdata.running-fastpath.value" fast = "$service_name_template$.perfdata.running-fastpath.value"
active = "$service_name_template$.perfdata.running-active.value" active = "$service_name_template$.perfdata.running-active.value"
; total = "$service_name_template$.perfdata.running-total.value" total = "$service_name_template$.perfdata.running-total.value"
[psqlserveractivity.functions] [psqlserveractivity.functions]
other = "alias($metric$, 'Other')" 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)')"
total = "alias($metric$, ':hidden:')"
; ====================================================================== ; ======================================================================
; ;
; 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')"
; ======================================================================
;
; POSTGRES replication
;
; ----------------------------------------------------------------------
; 2023-06-13 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[onehost.graph]
check_command = "Postgres-replication"
[onehost.urlparams]
areaAlpha = "0.2"
; areaMode = "first"
areaMode = "stacked"
colorList = "66cc88,888888,ddddee"
; ^ ^ ^
; stream other total
lineWidth = "2"
min = "0"
;max = "100"
yUnitSystem = "binary"
[onehost.metrics_filters]
valstreaming = "$service_name_template$.perfdata.state-streaming.value"
valother = "$service_name_template$.perfdata.state-other.value"
valtotal = "$service_name_template$.perfdata.total.value"
[onehost.functions]
valstreaming = "alias($metric$, 'Streaming')"
valother = "alias($metric$, 'other replication state')"
valtotal = "alias($metric$, ':hidden:')"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment