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

add 3 pgsql output templates

parent 7f37e02c
No related branches found
No related tags found
1 merge request!3add 3 pgsql output templates
; ======================================================================
;
; PSQLSERVER activity
;
; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserveractivity.graph]
check_command = "Postgres-activity"
; running-total=11;; running-active=1;; running-idle=5;; running-fastpath=0;; running-other=5;;
[psqlserveractivity.urlparams]
areaAlpha = "0.2"
areaMode = "stacked"
colorList = "aaaaaa,dddddd,99aacc,6699aa"
; ^ ^ ^ ^
; other idle fast active
lineWidth = "2"
min = "0"
yUnitSystem = "binary"
[psqlserveractivity.metrics_filters]
other = "$service_name_template$.perfdata.running-other.value"
idle = "$service_name_template$.perfdata.running-idle.value"
fast = "$service_name_template$.perfdata.running-fastpath.value"
active = "$service_name_template$.perfdata.running-active.value"
; total = "$service_name_template$.perfdata.running-total.value"
[psqlserveractivity.functions]
other = "alias($metric$, 'Other')"
idle = "alias($metric$, 'Idle incl. idle in transaction')"
fast = "alias($metric$, 'Fastpath function call')"
active = "alias($metric$, 'Active (values are stacked)')"
; ======================================================================
;
; PSQLSERVER conflicts
;
; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserverconflicts.graph]
check_command = "Postgres-conflicts"
; confltablespace=0;; confllock=0;; conflsnapshot=0;; conflbufferpin=0;; confldeadlock=0;;
[psqlserverconflicts.urlparams]
areaAlpha = "0.2"
areaMode = "first"
colorList = "aaaadd,dd8888,66cc88,6699aa,ff0000"
; ^ ^ ^ ^ ^
; tables lock snaps buffer deadlock
lineWidth = "2"
min = "0"
yUnitSystem = "binary"
[psqlserverconflicts.metrics_filters]
tablespace = "$service_name_template$.perfdata.confltablespace.value"
lock = "$service_name_template$.perfdata.confllock.value"
snapshot = "$service_name_template$.perfdata.conflsnapshot.value"
bufferpin = "$service_name_template$.perfdata.conflbufferpin.value"
deadlock = "$service_name_template$.perfdata.confldeadlock.value"
[psqlserverconflicts.functions]
tablespace = "alias($metric$, 'tablespace - queries that have been canceled due to dropped tablespaces')"
lock = "alias($metric$, 'lock - queries that have been canceled due to lock timeouts')"
snapshot = "alias($metric$, 'snapshot - queries that have been canceled due to old snapshots')"
bufferpin = "alias($metric$, 'bufferpin - queries that have been canceled due to pinned buffers')"
deadlock = "alias($metric$, 'deadlock - queries that have been canceled due to deadlocks')"
; ======================================================================
;
; PSQLSERVER activity
;
; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserverdbrows.graph]
check_command = "Postgres-dbrows"
; tupreturned=3689;; tupfetched=3415;; tupinserted=0;; tupupdated=0;; tupdeleted=0;;
[psqlserverdbrows.urlparams]
areaAlpha = "0.2"
areaMode = "all"
colorList = "cccccc,6699aa,88dd88,aaaadd,ffaaaa,6699aa,ffaaaa"
; ^ ^ ^ ^
; return fetch insert update deleted
lineWidth = "2"
min = "0"
yUnitSystem = "binary"
yUnitSystem = "binary"
title = Read per sec
[psqlserverdbrows.metrics_filters]
returned = "$service_name_template$.perfdata.tupreturned.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]
returned = "alias($metric$, 'Returned rows (total)')"
fetched = "alias($metric$, 'Fetched - rows fetched by index scans')"
; inserted = "alias($metric$, 'inserted')"
; updated = "alias($metric$, 'updated')"
; deleted = "alias($metric$, 'deleted')"
; ----------------------------------------------------------------------
[psqlserverdbrows2.urlparams]
areaAlpha = "0.2"
areaMode = "all"
colorList = "88cc88,aaaadd,ffaaaa,6699aa,ffaaaa"
; ^ ^ ^ ^
; insert update deleted
lineWidth = "2"
min = "0"
yUnitSystem = "binary"
title = Modifications per sec
[psqlserverdbrows2.metrics_filters]
inserted = "$service_name_template$.perfdata.tupinserted.value"
updated = "$service_name_template$.perfdata.tupupdated.value"
deleted = "$service_name_template$.perfdata.tupdeleted.value"
[psqlserverdbrows2.functions]
inserted = "alias($metric$, 'inserted')"
updated = "alias($metric$, 'updated')"
deleted = "alias($metric$, 'deleted')"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment