mirror of
https://github.com/waku-org/nwaku-compose.git
synced 2025-01-09 15:16:03 +00:00
nwaku-monitor/pg-exporter-queries: add new panel to show num msgs per shard (#43)
This commit is contained in:
parent
424283483a
commit
7fca44b7ba
File diff suppressed because it is too large
Load Diff
@ -261,3 +261,14 @@ pg_process_idle:
|
|||||||
- seconds:
|
- seconds:
|
||||||
usage: "HISTOGRAM"
|
usage: "HISTOGRAM"
|
||||||
description: "Idle time of server processes"
|
description: "Idle time of server processes"
|
||||||
|
|
||||||
|
pg_tb_stats:
|
||||||
|
query: |
|
||||||
|
select pubsubtopic, count(*) AS messages FROM (SELECT id, array_agg(pubsubtopic ORDER BY pubsubtopic) AS pubsubtopic FROM messages GROUP BY id) sub GROUP BY pubsubtopic ORDER BY pubsubtopic;
|
||||||
|
metrics:
|
||||||
|
- pubsubtopic:
|
||||||
|
usage: "LABEL"
|
||||||
|
description: "pubsubtopic"
|
||||||
|
- messages:
|
||||||
|
usage: "GAUGE"
|
||||||
|
description: "Number of messages for the given pubsub topic"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user