diff --git a/iml_psql-activity.ini b/iml_psql-activity.ini new file mode 100644 index 0000000000000000000000000000000000000000..c4e5634bd1dd076aa36b0711c579b7bc8aa42c76 --- /dev/null +++ b/iml_psql-activity.ini @@ -0,0 +1,42 @@ +; ====================================================================== +; +; 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)')" + diff --git a/iml_psql-conflicts.ini b/iml_psql-conflicts.ini new file mode 100644 index 0000000000000000000000000000000000000000..39d039144f551213508cb5648ab4935ccb1466d7 --- /dev/null +++ b/iml_psql-conflicts.ini @@ -0,0 +1,43 @@ +; ====================================================================== +; +; 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')" + diff --git a/iml_psql-dbrows.ini b/iml_psql-dbrows.ini new file mode 100644 index 0000000000000000000000000000000000000000..99b4bc991f618a11ba9456a2ee20f7d038c5da0a --- /dev/null +++ b/iml_psql-dbrows.ini @@ -0,0 +1,69 @@ +; ====================================================================== +; +; 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')" +