Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
209 - 1
##
2
## Statistics and metrics
3
##
4
 
5
# Dovecot supports gathering statistics from events.
6
# Currently there are no statistics logged by default, and therefore they must
7
# be explicitly added using the metric configuration blocks.
8
#
9
# Unlike old stats, the new statistics do not require any plugins loaded.
10
#
11
# See https://doc.dovecot.org/configuration_manual/stats/ for more details.
12
 
13
##
14
## Example metrics
15
##
16
 
17
#metric auth_success {
18
#  filter = event=auth_request_finished AND success=yes
19
#}
20
#
21
#metric auth_failures {
22
#  filter = event=auth_request_finished AND NOT success=yes
23
#}
24
#
25
#metric imap_command {
26
#  filter = event=imap_command_finished
27
#  group_by = cmd_name tagged_reply_state
28
#}
29
#
30
#metric smtp_command {
31
#  filter = event=smtp_server_command_finished
32
#  group_by = cmd_name status_code duration:exponential:1:5:10
33
#}
34
#
35
#metric mail_delivery {
36
#  filter = event=mail_delivery_finished
37
#  group_by = duration:exponential:1:5:10
38
#}
39
 
40
##
41
## Prometheus
42
##
43
 
44
# To allow access to statistics with Prometheus, enable http listener
45
# on stats process. Stats will be available on /metrics path.
46
#
47
# See https://doc.dovecot.org/configuration_manual/stats/openmetrics/ for more
48
# details.
49
 
50
#service stats {
51
#  inet_listener http {
52
#    port = 9900
53
#  }
54
#}
55
 
56
##
57
## Event exporting
58
##
59
 
60
# You can also export individual events.
61
#
62
# See https://doc.dovecot.org/configuration_manual/event_export/ for more
63
# details.
64
 
65
#event_exporter log {
66
#  format = json
67
#  format_args = time-rfc3339
68
#  transport = log
69
#}
70
#
71
#metric imap_commands {
72
#  exporter = log
73
#  filter = event=imap_command_finished
74
#}