Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 1ef6336

Browse files
committed
Improve metric help message
1 parent 81618c9 commit 1ef6336

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gauges/table_rows.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func (g *Gauges) TableDeadRows() *prometheus.GaugeVec {
1616
var gauge = prometheus.NewGaugeVec(
1717
prometheus.GaugeOpts{
1818
Name: "postgresql_table_dead_rows",
19-
Help: "Estimated number of dead rows in table",
19+
Help: "Estimated number of dead rows in a table",
2020
ConstLabels: g.labels,
2121
},
2222
[]string{"table"},
@@ -47,7 +47,7 @@ func (g *Gauges) DatabaseDeadRows() prometheus.Gauge {
4747
return g.new(
4848
prometheus.GaugeOpts{
4949
Name: "postgresql_database_dead_rows",
50-
Help: "Estimated number of dead rows in database",
50+
Help: "Estimated number of dead rows in a database",
5151
ConstLabels: g.labels,
5252
},
5353
"SELECT sum(coalesce(n_dead_tup, 0)) as n_dead_tup FROM pg_stat_user_tables",
@@ -64,7 +64,7 @@ func (g *Gauges) TableLiveRows() *prometheus.GaugeVec {
6464
var gauge = prometheus.NewGaugeVec(
6565
prometheus.GaugeOpts{
6666
Name: "postgresql_table_live_rows",
67-
Help: "Estimated number of live rows in table",
67+
Help: "Estimated number of live rows in a table",
6868
ConstLabels: g.labels,
6969
},
7070
[]string{"table"},
@@ -95,7 +95,7 @@ func (g *Gauges) DatabaseLiveRows() prometheus.Gauge {
9595
return g.new(
9696
prometheus.GaugeOpts{
9797
Name: "postgresql_database_live_rows",
98-
Help: "Estimated number of live rows in database",
98+
Help: "Estimated number of live rows in a database",
9999
ConstLabels: g.labels,
100100
},
101101
"SELECT sum(coalesce(n_live_tup, 0)) as n_live_tup FROM pg_stat_user_tables",

0 commit comments

Comments
 (0)