-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPGSTAT-MIB-UserTables.txt
96 lines (83 loc) · 3.33 KB
/
PGSTAT-MIB-UserTables.txt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
-- http://www.postgresql.org/docs/current/static/monitoring-stats.html#PG-STAT-ALL-TABLES-VIEW
pgstatUserTableTable OBJECT-TYPE
SYNTAX SEQUENCE OF PgStatUserTableEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Contains one row for each table in the current database (including TOAST tables), showing statistics about accesses to that specific user table (pg_stat_user_tables)."
::= { pgStatMIB 3 }
pgstatUserTableEntry OBJECT-TYPE
SYNTAX PgStatUserTableEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry for one table contained by the database."
INDEX { pgstatUserTableId }
::= { pgstatUserTableTable 1 }
PgStatUserTableEntry ::= SEQUENCE {
pgstatUserTableId Integer32,
pgstatUserTableSchema DisplayString,
pgstatUserTableName DisplayString,
pgstatUserTableSize Unsigned32,
pgstatUserTableTotalSize Unsigned32,
pgstatUserTableSeqScans Counter32,
pgstatUserTableSeqTuplesRead Counter32,
pgstatUserTableIdxScans Counter32,
pgstatUserTableIdxTuplesFetched Counter32,
pgstatUserTableTuplesInserted Counter32,
pgstatUserTableTuplesUpdated Counter32,
pgstatUserTableTuplesDeleted Counter32,
pgstatUserTableTuplesHotUpdated Counter32,
pgstatUserTableLiveTuples Gauge32,
pgstatUserTableDeadTuples Gauge32,
pgstatUserTableVacuumCount Counter32,
pgstatUserTableAutovacuumCount Counter32,
pgstatUserTableAnalyzeCount Counter32,
pgstatUserTableAutoanalyzeCount Counter32,
pgstatUserTableIdxScanRatio Integer32,
pgstatUserTableTuplesModified Counter32
}
pgstatUserTableId OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A unique value for each table contained by the database. Internally it represents the OID of a table in PostgreSQL (relid). Therefore, this value remains constant for each database regardless the agent is restarted."
::= { pgstatUserTableEntry 1 }
pgstatUserTableSchema OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..64))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Name of the schema that this table is in (schemaname)."
::= { pgstatUserTableEntry 2 }
pgstatUserTableName OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..64))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Name of this table (relname)."
::= { pgstatUserTableEntry 3 }
pgstatUserTableSize OBJECT-TYPE
SYNTAX Unsigned32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Disk space (in bytes) used by the specified table, excluding indexes, but including TOAST, free space map, and visibility map (pg_table_size function)."
::= { pgstatUserTableEntry 4 }
pgstatUserTableTotalSize OBJECT-TYPE
SYNTAX Unsigned32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Total disk space (in bytes) used by the specified table, including all indexes and TOAST data (pg_total_relation_size function)."
::= { pgstatUserTableEntry 5 }
pgstatUserTableSeqScans OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of sequential scans initiated on this table (seq_scan)."
::= { pgstatUserTableEntry 6 }
-- TODO...
----------------------------------------------------------------