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

Commit 204becd

Browse files
bern4rdellidiogonicoleti
authored andcommitted
Fix main function names
1 parent 1f15a6a commit 204becd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gauges/indexes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type schemaIndexBlocksRead struct {
6666
IndexBlocksRead float64 `db:"idx_blks_read"`
6767
}
6868

69-
// IndexBlocksRead returns the sum of the number of disk blocks read from all public indexes
69+
// IndexBlocksReadBySchema returns the sum of the number of disk blocks read from all public indexes
7070
func (g *Gauges) IndexBlocksReadBySchema() *prometheus.GaugeVec {
7171
var gauge = prometheus.NewGaugeVec(
7272
prometheus.GaugeOpts{
@@ -109,7 +109,7 @@ type schemaIndexBlocksHit struct {
109109
IndexBlocksHit float64 `db:"idx_blks_hit"`
110110
}
111111

112-
// IndexBlocksHit returns the sum of the number of buffer hits on all user indexes
112+
// IndexBlocksHitBySchema returns the sum of the number of buffer hits on all user indexes
113113
func (g *Gauges) IndexBlocksHitBySchema() *prometheus.GaugeVec {
114114
var gauge = prometheus.NewGaugeVec(
115115
prometheus.GaugeOpts{

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func watch(db *sql.DB, reg prometheus.Registerer, name string) {
8888
reg.MustRegister(gauges.HeapBlocksRead())
8989
reg.MustRegister(gauges.IndexScans())
9090
reg.MustRegister(gauges.UnusedIndexes())
91-
reg.MustRegister(gauges.IndexBlocksHit())
92-
reg.MustRegister(gauges.IndexBlocksRead())
91+
reg.MustRegister(gauges.IndexBlocksReadBySchema())
92+
reg.MustRegister(gauges.IndexBlocksHitBySchema())
9393
reg.MustRegister(gauges.IndexBloat())
9494
reg.MustRegister(gauges.Locks())
9595
reg.MustRegister(gauges.NotGrantedLocks())

0 commit comments

Comments
 (0)