gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 42/48: fix metric


From: gnunet
Subject: [taler-grid5k] 42/48: fix metric
Date: Sat, 28 May 2022 12:12:02 +0200

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit 35a61cafdc30f4841a27c5081590c1cb41bfd151
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Wed May 25 13:32:31 2022 +0200

    fix metric
---
 configs/etc/monitor/postgres-exporter.yaml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/configs/etc/monitor/postgres-exporter.yaml 
b/configs/etc/monitor/postgres-exporter.yaml
index 4c2a052..416cc57 100644
--- a/configs/etc/monitor/postgres-exporter.yaml
+++ b/configs/etc/monitor/postgres-exporter.yaml
@@ -159,15 +159,18 @@ pg_database:
         description: "Disk space used by the database"
 
 pg_wait_events:
-  query: "SELECT wait_event, wait_event_type FROM pg_stat_activity WHERE 
wait_event IS NOT NULL;"
+  query: "SELECT wait_event_type, wait_event, COUNT(wait_event), FROM 
pg_stat_activity WHERE wait_event IS NOT NULL GROUP BY (wait_event_type, 
wait_event)"
   master: true
   metrics:
-    - wait_event:
-        usage: "Counter"
-        description: "Wait events"
     - wait_event_type:
-        usage: "Label"
+        usage: "LABEL"
         description: "Type of the wait event"
+    - wait_event:
+        usage: "LABEL"
+        description: "Wait events"
+    - total:
+        usage: "COUNTER"
+        description: "Number of wait events"
 
 #pg_stat_statements:
 #  query: "SELECT t2.rolname, t3.datname, queryid, calls, total_exec_time / 
1000 as total_time_seconds, min_exec_time / 1000 as min_time_seconds, 
max_exec_time / 1000 as max_time_seconds, mean_exec_time / 1000 as 
mean_time_seconds, stddev_exec_time / 1000 as stddev_time_seconds, rows, 
shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, 
local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, 
temp_blks_read, temp_blks_written, blk_read_time / 1000  [...]

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]