Skip to content

Commit fcb1f78

Browse files
author
alexander popov
committed
fix: change name of metrics
1 parent 8f524bf commit fcb1f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mamonsu/plugins/pgsql/prepared_transaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PreparedTransaction(Plugin):
1616
key_prepared = {
1717
'state': 'oldest_prepared',
1818
'key': 'pgsql.prepared.oldest',
19-
'name': 'PostgreSQL: oldest prepared transaction running time in sec',
19+
'name': 'PostgreSQL: oldest prepared transaction time in sec',
2020
'color': '0000BB',
2121
'yaxisside': 1,
2222
}
@@ -71,7 +71,7 @@ def graphs(self, template):
7171

7272
def triggers(self, template):
7373
result = template.trigger({
74-
'name': 'PostgreSQL prepared transaction running is too old on {HOSTNAME}',
74+
'name': 'PostgreSQL prepared transaction is too old on {HOSTNAME}',
7575
'expression': '{#TEMPLATE:' + self.key_prepared['key'] +
7676
'.last()}>' + self.plugin_config('max_prepared_transaction_time')
7777
})

0 commit comments

Comments
 (0)