Skip to content

Commit 934592d

Browse files
authored
Merge branch 'master' into version_metric
2 parents 3c1810f + 03013de commit 934592d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cmd/postgres_exporter/postgres_exporter.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,23 @@ func dumpMaps() {
205205
}
206206

207207
var builtinMetricMaps = map[string]intermediateMetricMap{
208+
"pg_stat_bgwriter": {
209+
map[string]ColumnMapping{
210+
"checkpoints_timed": {COUNTER, "Number of scheduled checkpoints that have been performed", nil, nil},
211+
"checkpoints_req": {COUNTER, "Number of requested checkpoints that have been performed", nil, nil},
212+
"checkpoint_write_time": {COUNTER, "Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk, in milliseconds", nil, nil},
213+
"checkpoint_sync_time": {COUNTER, "Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk, in milliseconds", nil, nil},
214+
"buffers_checkpoint": {COUNTER, "Number of buffers written during checkpoints", nil, nil},
215+
"buffers_clean": {COUNTER, "Number of buffers written by the background writer", nil, nil},
216+
"maxwritten_clean": {COUNTER, "Number of times the background writer stopped a cleaning scan because it had written too many buffers", nil, nil},
217+
"buffers_backend": {COUNTER, "Number of buffers written directly by a backend", nil, nil},
218+
"buffers_backend_fsync": {COUNTER, "Number of times a backend had to execute its own fsync call (normally the background writer handles those even when the backend does its own write)", nil, nil},
219+
"buffers_alloc": {COUNTER, "Number of buffers allocated", nil, nil},
220+
"stats_reset": {COUNTER, "Time at which these statistics were last reset", nil, nil},
221+
},
222+
true,
223+
0,
224+
},
208225
"pg_stat_database": {
209226
map[string]ColumnMapping{
210227
"datid": {LABEL, "OID of a database", nil, nil},

0 commit comments

Comments
 (0)