Skip to content

Commit f015067

Browse files
author
alexander popov
committed
fix: change messages in log and change describe in the conf file
1 parent 8a43528 commit f015067

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mamonsu/plugins/pgsql/relations_size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run(self, zbx):
7171
size = -1
7272
elif pg_total_relation_size ==-1 or pg_total_relation_size_part ==-1:
7373
self.log.error(
74-
"The relation: {full_name_relation} is lock. "
74+
"The relation: {full_name_relation} is locked. "
7575
"You can find this lock in query: "
7676
"SELECT relation::regclass AS lock_relation, mode FROM pg_locks WHERE relation::regclass = 'pg_locks'::regclass;".format(full_name_relation=full_name_relation))
7777
size = -1

packaging/conf/example.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ interval = 2
167167
[agentapi]
168168
interval = 60
169169

170-
# Metrics with sizes of relations.
170+
# Get size of relations defined in this section
171171
# Relations - comma separated list of objects - tables and endexes (schema.relation) to calculate relations size.
172172
# Example:
173-
# relations="pg_catalog.pg_class,pg_catalog.pg_user"
174-
# If the ralation is block some operation lile vacuum full or create index, the result will be -1
175-
# by default this plagin disabled. To enable this plagin - write bellow enabled = False and define list or relation for count size.
173+
# relations=pg_catalog.pg_class,pg_catalog.pg_user
174+
# If the relation is blocked by some process such as vacuum full or create index, the result will be -1
175+
# by default this plugin disabled. To enable this plugin - set bellow "enabled = False" and define a list of relations.
176176
[relationssize]
177177
enabled = False
178178
relations=pg_catalog.pg_class,pg_catalog.pg_user

0 commit comments

Comments
 (0)