Skip to content

Commit 49ee215

Browse files
committed
Add better descriptions of the new metrics
Signed-off-by: Phil Porada <[email protected]>
1 parent 7561457 commit 49ee215

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

collector/mysql_innodb_index_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var (
4242
var (
4343
indexStatsValueDesc = prometheus.NewDesc(
4444
prometheus.BuildFQName(namespace, mysql, "innodb_index_stats_stat_value"),
45-
"Stores data related to particular InnoDB Persistent Statistics.",
45+
"Size of the InnoDB index in bytes.",
4646
indexStatLabelNames, nil)
4747
)
4848

collector/mysql_innodb_table_stats.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ var (
4242
var (
4343
nRowsDesc = prometheus.NewDesc(
4444
prometheus.BuildFQName(namespace, mysql, "innodb_table_stats_n_rows"),
45-
"Stores data related to particular InnoDB Persistent Statistics.",
45+
"Number of rows in the table.",
4646
tableStatLabelNames, nil)
4747
clusteredIndexSizeDesc = prometheus.NewDesc(
4848
prometheus.BuildFQName(namespace, mysql, "innodb_table_stats_clustered_index_size"),
49-
"Stores data related to particular InnoDB Persistent Statistics.",
49+
"The size of the primary index, in pages.",
5050
tableStatLabelNames, nil)
5151
sumOfOtherIndexSizesDesc = prometheus.NewDesc(
5252
prometheus.BuildFQName(namespace, mysql, "innodb_table_stats_sum_of_other_index_sizes"),
53-
"Stores data related to particular InnoDB Persistent Statistics.",
53+
"The total size of other (non-primary) indexes, in pages.",
5454
tableStatLabelNames, nil)
5555
)
5656

0 commit comments

Comments
 (0)