We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 939400a commit 1b638e4Copy full SHA for 1b638e4
main.go
@@ -88,6 +88,10 @@ type MetricMap struct {
88
89
// Metric descriptors for dynamically created metrics.
90
var metricMaps = map[NamespaceAndQuery]map[string]ColumnMapping{
91
+ {"pg_database", "select datname,age(datfrozenxid) as xid_age from pg_database"}: map[string]ColumnMapping{
92
+ "datname": {LABEL, "OID of a database", nil},
93
+ "xid_age": {COUNTER, "Age of maximum frozen xid", nil},
94
+ },
95
{"pg_stat_bgwriter", "select * from pg_stat_bgwriter"}: map[string]ColumnMapping{
96
"checkpoints_timed": {COUNTER, "Number of scheduled checkpoints that have been performed", nil},
97
"checkpoints_req": {COUNTER, "Number of requested checkpoints that have been performed", nil},
0 commit comments