-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy path0620-pg_db_confl.yml
More file actions
40 lines (36 loc) · 2.48 KB
/
0620-pg_db_confl.yml
File metadata and controls
40 lines (36 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#==============================================================#
# 0620 pg_db_confl
#==============================================================#
# https://pgpedia.info/p/pg_stat_database_conflicts.html
pg_db_confl_16:
name: pg_db_confl
desc: PostgreSQL database conflicts metrics for PG16+
query: SELECT * FROM pg_stat_database_conflicts;
ttl: 10
min_version: 160000
tags: [ cluster, replica ]
metrics:
- datid: { usage: DISCARD }
- datname: { usage: LABEL ,description: Name of this database }
- confl_tablespace: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to dropped tablespaces }
- confl_lock: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to lock timeouts }
- confl_snapshot: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to old snapshots }
- confl_bufferpin: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to pinned buffers }
- confl_deadlock: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to deadlocks }
- confl_active_logicalslot: { usage: COUNTER ,description: Number of uses of logical slots in this database that have been canceled due to old snapshots or too low a wal_level on the primary }
pg_db_confl_15:
name: pg_db_confl
desc: PostgreSQL database conflicts metrics for pg 9.1 - 15
query: SELECT * FROM pg_stat_database_conflicts;
ttl: 10
min_version: 90100
max_version: 160000
tags: [ cluster, replica ]
metrics:
- datid: { usage: DISCARD }
- datname: { usage: LABEL ,description: Name of this database }
- confl_tablespace: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to dropped tablespaces }
- confl_lock: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to lock timeouts }
- confl_snapshot: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to old snapshots }
- confl_bufferpin: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to pinned buffers }
- confl_deadlock: { usage: COUNTER ,description: Number of queries in this database that have been canceled due to deadlocks }