mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
Reapply "cmdeploy/dovecot/dovecot.conf.j2: tweak idle/hibernate metrics"
This reverts commit 0aa0324c81.
This commit is contained in:
@@ -326,11 +326,20 @@ metric imap_idle_duration {
|
||||
group_by = duration:exponential:5:11:10
|
||||
}
|
||||
|
||||
metric imap_idle_commands {
|
||||
filter = event=imap_command_finished AND cmd_name=IDLE
|
||||
group_by = tagged_reply_state
|
||||
}
|
||||
|
||||
metric imap_idle_failed {
|
||||
filter = event=imap_command_finished AND cmd_name=IDLE AND tagged_reply_state!=OK
|
||||
}
|
||||
|
||||
# Hibernation Metrics (requires imap_hibernate_timeout to be set)
|
||||
metric imap_hibernated {
|
||||
filter = event=imap_client_hibernated
|
||||
# error field present = failure
|
||||
group_by = mailbox
|
||||
# group_by = mailbox
|
||||
}
|
||||
|
||||
metric imap_hibernated_failed {
|
||||
@@ -340,7 +349,18 @@ metric imap_hibernated_failed {
|
||||
metric imap_unhibernated {
|
||||
filter = event=imap_client_unhibernated
|
||||
fields = hibernation_usecs
|
||||
# group_by = reason
|
||||
}
|
||||
|
||||
metric imap_unhibernated_reason {
|
||||
filter = event=imap_client_unhibernated
|
||||
group_by = reason
|
||||
fields = hibernation_usecs
|
||||
}
|
||||
|
||||
metric imap_unhibernated_reason_sleep {
|
||||
filter = event=imap_client_unhibernated
|
||||
group_by = reason hibernation_usecs:exponential:4:8:10
|
||||
}
|
||||
|
||||
metric imap_unhibernated_failed {
|
||||
|
||||
Reference in New Issue
Block a user