Skip to content

Commit 4c0ddbb

Browse files
committed
style : changed configuration file style, added comments for options
1 parent 6fc458c commit 4c0ddbb

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

packaging/conf/example.conf

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# This is a configuration file for mamonsu
2+
# To get more information about mamonsu, visit https://postgrespro.ru/docs/postgrespro/12/mamonsu
3+
4+
######### Connection parameters sections ##############
5+
6+
# specify connection parameters for the Postgres cluster
7+
# in the user, password, and database fields, you must specify the mamonsu_user, mamonsu_password,
8+
# and the mamonsu_database used for bootstrap, respectively.
9+
# if you skipped the bootstrap, specify a superuser credentials and the database to connect to.
10+
111
[postgres]
212
enabled = True
313
user = postgres
@@ -8,37 +18,62 @@ port = 5432
818
application_name = mamonsu
919
query_timeout = 10
1020

21+
# the address field must point to the running Zabbix server, while the client field must provide the name of
22+
# the Zabbix host. You can find the list of hosts available for your account in the Zabbix web
23+
# interface under Configuration > Hosts.
24+
25+
[zabbix]
26+
enabled = True
27+
client = localhost
28+
address = 127.0.0.1
29+
port = 10051
30+
31+
######### General parameters sections ############
32+
33+
# enable or disable collection of system metrics.
34+
1135
[system]
1236
enabled = True
1337

38+
# control the queue size of the data to be sent to the Zabbix server
39+
1440
[sender]
1541
queue = 2048
1642

43+
# specify the location of mamonsu and whether it is allowed to access metrics from the command line
44+
1745
[agent]
1846
enabled = True
1947
host = 127.0.0.1
2048
port = 10052
2149

50+
# specify custom plugins to be added for metrics collection
51+
2252
[plugins]
2353
enabled = False
2454
directory = /etc/mamonsu/plugins
2555

26-
[zabbix]
27-
enabled = True
28-
client = localhost
29-
address = 127.0.0.1
30-
port = 10051
56+
# enable storing the collected metric data in text files locally.
3157

3258
[metric_log]
3359
enabled = False
3460
directory = /var/log/mamonsu
3561
max_size_mb = 1024
3662

63+
# specify logging settings for mamonsu
64+
3765
[log]
3866
file = None
3967
level = INFO
4068
format = [%(levelname)s] %(asctime)s - %(name)s - %(message)s
4169

70+
######### Individual Plugin Sections ############
71+
72+
# to disable any plugin set the enabled option to False.
73+
# modify collection interval for each plugin in the interval field.
74+
# set customer parameters for some plugins in the individual section.
75+
# below listed all available parameters for each plugin to modify.
76+
4277
[health]
4378
max_memory_usage = 41943040
4479
interval = 60

0 commit comments

Comments
 (0)