Add sequence metrics to Zabbix template

This commit is contained in:
2025-07-04 02:45:43 -04:00
parent 45953848e2
commit 98b74d9aed
2 changed files with 82 additions and 1 deletions

View File

@@ -226,7 +226,7 @@ metrics:
type: row
query:
100000: >
SELECT COUNT(*) FILTER (WHERE has_sequence_privilege(c.oid, 'SELECT,USAGE')) AS readable_sequences,
SELECT COUNT(*) FILTER (WHERE has_sequence_privilege(c.oid, 'SELECT,USAGE')) AS visible_sequences,
COUNT(*) AS total_sequences
FROM pg_class AS c
WHERE relkind = 'S';