Prometheus metrics for Dovecot
This commit is contained in:
parent
71eb192c73
commit
b1ce5b3e84
5 changed files with 106 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ service quota-status {
|
|||
client_limit = 1
|
||||
}
|
||||
|
||||
# Metrics
|
||||
service stats {
|
||||
unix_listener stats-reader {
|
||||
user = vmail
|
||||
|
|
@ -149,6 +150,31 @@ service stats {
|
|||
# 0666 instead of 0660, so postfixadmin can call doveadm pw without errors
|
||||
mode = 0666
|
||||
}
|
||||
|
||||
inet_listener http {
|
||||
port = 9900
|
||||
}
|
||||
}
|
||||
|
||||
metric auths {
|
||||
filter = event=auth_request_finished
|
||||
}
|
||||
metric auth_successes {
|
||||
filter = event=auth_request_finished AND success=yes
|
||||
}
|
||||
|
||||
metric imap_commands {
|
||||
filter = event=imap_command_finished
|
||||
group_by = cmd_name tagged_reply_state duration:exponential:1:9:10
|
||||
}
|
||||
|
||||
metric sieve_actions {
|
||||
filter = event=sieve_action_finished
|
||||
group_by = action_name
|
||||
}
|
||||
|
||||
metric mail_deliveries {
|
||||
filter = event=mail_delivery_finished
|
||||
}
|
||||
|
||||
# Postfix delivers incoming mails via lda (transport "dovecot")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue