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

Commit 10d56c6

Browse files
bern4rdellidiogonicoleti
authored andcommitted
Using all schemas to calc IndexCacheHitRatio
1 parent eef5c85 commit 10d56c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gauges/indexes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (g *Gauges) IndexBlocksRead() prometheus.Gauge {
7272
`
7373
SELECT coalesce(sum(idx_blks_read), 0)
7474
FROM pg_statio_user_indexes
75-
WHERE schemaname = 'public'
75+
WHERE schemaname NOT IN ('pg_catalog','information_schema','monitoring')
7676
`,
7777
)
7878
}
@@ -88,7 +88,7 @@ func (g *Gauges) IndexBlocksHit() prometheus.Gauge {
8888
`
8989
SELECT coalesce(sum(idx_blks_hit), 0)
9090
FROM pg_statio_user_indexes
91-
WHERE schemaname = 'public'
91+
WHERE schemaname NOT IN ('pg_catalog','information_schema','monitoring')
9292
`,
9393
)
9494
}

0 commit comments

Comments
 (0)