Skip to content

Commit 37b9672

Browse files
committed
fix: removed Cache Hit Ratio formula
1 parent 4ee719e commit 37b9672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mamonsu/plugins/pgsql/health.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def items(self, template, dashboard=False):
5959
"type": Plugin.TYPE.CALCULATED,
6060
"params": "last(//{blocks_hit})*100/(last(//{blocks_hit})+last(//{blocks_read}))".format(
6161
# TODO: hardcoded params
62-
blocks_hit=self.right_type("pgsql.blocks.hit{0}"),
63-
blocks_read=self.right_type("pgsql.blocks.read{0}"))
62+
blocks_hit=self.right_type("pgsql.blocks{0}", "hit"),
63+
blocks_read=self.right_type("pgsql.blocks{0}", "read"))
6464
}) + template.item({
6565
"name": "PostgreSQL Health: Service Uptime",
6666
"key": self.right_type(self.key_uptime),

0 commit comments

Comments
 (0)