Skip to content

Commit f255f46

Browse files
committed
docs: update example doc of configuration file
1 parent f9d70d8 commit f255f46

File tree

1 file changed

+124
-6
lines changed

1 file changed

+124
-6
lines changed

packaging/conf/example.conf

+124-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
[zabbix]
2-
; zabbix server address
3-
address = zabbix.server.ip
4-
; configured 'Host name' of client in zabbix
5-
client = localhost
6-
1+
### required section
72
[postgres]
83
enabled = True
94
host = auto
@@ -12,9 +7,132 @@ database = postgres
127
port = 5432
138
query_timeout = 10
149

10+
### required section
11+
[zabbix]
12+
; zabbix server address
13+
address = zabbix.server.ip
14+
; configured 'Host name' of client in zabbix
15+
client = localhost
16+
port = 10051
17+
[sender]
18+
queue = 2048
19+
20+
### required section
1521
[system]
1622
enabled = True
1723

24+
### required section
1825
[log]
1926
file = /var/log/mamonsu/agent.log
2027
level = INFO
28+
format = [%(levelname)s] %(asctime)s - %(name)s - %(message)s
29+
30+
[agent]
31+
enabled = True
32+
host = 127.0.0.1
33+
port = 10052
34+
35+
[plugins]
36+
enabled = False
37+
directory = /etc/mamonsu/plugins
38+
39+
40+
[metric_log]
41+
enabled = False
42+
directory = /var/log/mamonsu
43+
max_size_mb = 1024
44+
45+
### individual plugin sections
46+
[health]
47+
max_memory_usage = 41943040
48+
interval = 60
49+
50+
[bgwriter]
51+
interval = 60
52+
53+
[connections]
54+
percent_connections_tr = 90
55+
interval = 60
56+
57+
[databases]
58+
bloat_scale = 0.2
59+
min_rows = 50
60+
interval = 300
61+
62+
[pghealth]
63+
uptime = 600
64+
cache = 80
65+
interval = 60
66+
67+
[instance]
68+
interval = 60
69+
70+
[xlog]
71+
lag_more_then_in_sec = 300
72+
interval = 60
73+
74+
[pgstatstatement]
75+
interval = 60
76+
77+
[pgbuffercache]
78+
interval = 60
79+
80+
[pgwaitsampling]
81+
interval = 60
82+
83+
[checkpoint]
84+
max_checkpoint_by_wal_in_hour = 12
85+
interval = 300
86+
87+
[oldest]
88+
max_transaction_time = 18000
89+
max_xid_age = 18000000
90+
interval = 60
91+
92+
[pglocks]
93+
interval = 60
94+
95+
[cfs]
96+
force_enable = False
97+
interval = 60
98+
99+
[archivecommand]
100+
max_count_files = 2
101+
interval = 60
102+
103+
[procstat]
104+
interval = 60
105+
106+
[diskstats]
107+
interval = 60
108+
109+
[disksizes]
110+
vfs_percent_free = 10
111+
vfs_inode_percent_free = 10
112+
interval = 60
113+
114+
[memory]
115+
interval = 60
116+
117+
[systemuptime]
118+
up_time = 300
119+
interval = 60
120+
121+
[openfiles]
122+
interval = 60
123+
124+
[net]
125+
interval = 60
126+
127+
[la]
128+
interval = 60
129+
130+
[zbxsender]
131+
interval = 10
132+
133+
[logsender]
134+
interval = 2
135+
136+
[agentapi]
137+
interval = 60
138+

0 commit comments

Comments
 (0)