Skip to content

Commit 6653396

Browse files
authored
refactor out postgres metrics test (#5752)
1 parent cd605c5 commit 6653396

File tree

3 files changed

+444
-225
lines changed

3 files changed

+444
-225
lines changed
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"postgresql.backends": {
3+
"data_type": "Sum",
4+
"description": "The number of backends."
5+
},
6+
"postgresql.bgwriter.buffers.allocated": {
7+
"data_type": "Sum",
8+
"description": "Number of buffers allocated."
9+
},
10+
"postgresql.bgwriter.buffers.writes": {
11+
"data_type": "Sum",
12+
"description": "Number of buffers written."
13+
},
14+
"postgresql.bgwriter.checkpoint.count": {
15+
"data_type": "Sum",
16+
"description": "The number of checkpoints performed."
17+
},
18+
"postgresql.bgwriter.duration": {
19+
"data_type": "Sum",
20+
"description": "Total time spent writing and syncing files to disk by checkpoints."
21+
},
22+
"postgresql.bgwriter.maxwritten": {
23+
"data_type": "Sum",
24+
"description": "Number of times the background writer stopped a cleaning scan because it had written too many buffers."
25+
},
26+
"postgresql.blks_hit": {
27+
"data_type": "Sum",
28+
"description": "Number of times disk blocks were found already in the buffer cache."
29+
},
30+
"postgresql.blks_read": {
31+
"data_type": "Sum",
32+
"description": "Number of disk blocks read in this database."
33+
},
34+
"postgresql.blocks_read": {
35+
"data_type": "Sum",
36+
"description": "The number of blocks read"
37+
},
38+
"postgresql.commits": {
39+
"data_type": "Sum",
40+
"description": "The number of commits."
41+
},
42+
"postgresql.connection.max": {
43+
"data_type": "Gauge",
44+
"description": "Configured maximum number of client connections allowed"
45+
},
46+
"postgresql.database.count": {
47+
"data_type": "Sum",
48+
"description": "Number of user databases."
49+
},
50+
"postgresql.database.locks": {
51+
"data_type": "Gauge",
52+
"description": "The number of database locks."
53+
},
54+
"postgresql.db_size": {
55+
"data_type": "Sum",
56+
"description": "The database disk usage."
57+
},
58+
"postgresql.deadlocks": {
59+
"data_type": "Sum",
60+
"description": "The number of deadlocks."
61+
},
62+
"postgresql.function.calls": {
63+
"data_type": "Sum",
64+
"description": "The number of calls made to a function. Requires `track_functions=pl|all` in Postgres config."
65+
},
66+
"postgresql.index.scans": {
67+
"data_type": "Sum",
68+
"description": "The number of index scans on a table"
69+
},
70+
"postgresql.index.size": {
71+
"data_type": "Gauge",
72+
"description": "The size of the index on disk."
73+
},
74+
"postgresql.operations": {
75+
"data_type": "Sum",
76+
"description": "The number of db row operations"
77+
},
78+
"postgresql.replication.data_delay": {
79+
"data_type": "Gauge",
80+
"description": "The amount of data delayed in replication."
81+
},
82+
"postgresql.rollbacks": {
83+
"data_type": "Sum",
84+
"description": "The number of rollbacks."
85+
},
86+
"postgresql.rows": {
87+
"data_type": "Sum",
88+
"description": "The number of rows in the database"
89+
},
90+
"postgresql.sequential_scans": {
91+
"data_type": "Sum",
92+
"description": "The number of sequential scans"
93+
},
94+
"postgresql.table.count": {
95+
"data_type": "Sum",
96+
"description": "Number of user tables in a database."
97+
},
98+
"postgresql.table.size": {
99+
"data_type": "Sum",
100+
"description": "Disk space used by a table."
101+
},
102+
"postgresql.table.vacuum.count": {
103+
"data_type": "Sum",
104+
"description": "Number of times a table has manually been vacuumed"
105+
},
106+
"postgresql.temp.io": {
107+
"data_type": "Sum",
108+
"description": "Total amount of data written to temporary files by queries"
109+
},
110+
"postgresql.temp_files": {
111+
"data_type": "Sum",
112+
"description": "The number of temp files."
113+
},
114+
"postgresql.tup_deleted": {
115+
"data_type": "Sum",
116+
"description": "Number of rows deleted by queries in the database"
117+
},
118+
"postgresql.tup_fetched": {
119+
"data_type": "Sum",
120+
"description": "Number of rows fetched by queries in the database"
121+
},
122+
"postgresql.tup_inserted": {
123+
"data_type": "Sum",
124+
"description": "Number of rows inserted by queries in the database"
125+
},
126+
"postgresql.tup_returned": {
127+
"data_type": "Sum",
128+
"description": "Number of rows returned by queries in the database"
129+
},
130+
"postgresql.tup_updated": {
131+
"data_type": "Sum",
132+
"description": "Number of rows updated by queries in the database"
133+
},
134+
"postgresql.wal.age": {
135+
"data_type": "Gauge",
136+
"description": "Age of the oldest WAL file"
137+
},
138+
"postgresql.wal.delay": {
139+
"data_type": "Gauge",
140+
"description": "Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it."
141+
},
142+
"postgresql.wal.lag": {
143+
"data_type": "Gauge",
144+
"description": "Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it."
145+
}
146+
}

0 commit comments

Comments
 (0)