From 7ad1760a244f87d84bbd909191109948886c2cd0 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Tue, 13 Jun 2023 17:21:34 +0200 Subject: [PATCH] add psql-replication --- iml_onehost.ini | 2 +- iml_onevm.ini | 2 +- iml_psql-replication.ini | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 iml_psql-replication.ini diff --git a/iml_onehost.ini b/iml_onehost.ini index a2e36e7..05f68ab 100644 --- a/iml_onehost.ini +++ b/iml_onehost.ini @@ -5,7 +5,7 @@ ; Opennebula hosts ; ; ---------------------------------------------------------------------- -; 2023-06-i12 <axel.hahn@unibe.ch> initial version +; 2023-06-12 <axel.hahn@unibe.ch> initial version ; ====================================================================== diff --git a/iml_onevm.ini b/iml_onevm.ini index 90121c0..2a4809c 100644 --- a/iml_onevm.ini +++ b/iml_onevm.ini @@ -5,7 +5,7 @@ ; Opennebula virtual machines ; ; ---------------------------------------------------------------------- -; 2023-06-i12 <axel.hahn@unibe.ch> initial version +; 2023-06-12 <axel.hahn@unibe.ch> initial version ; ====================================================================== diff --git a/iml_psql-replication.ini b/iml_psql-replication.ini new file mode 100644 index 0000000..21e776f --- /dev/null +++ b/iml_psql-replication.ini @@ -0,0 +1,39 @@ +; ====================================================================== +; +; 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:')" + -- GitLab