Page MenuHomeDevCentral

10-metrics.conf
No OneTemporary

10-metrics.conf

# -------------------------------------------------------------
# Dovecot configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/mailserver/dovecot/files/conf.d/10-metrics.conf
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
# -------------------------------------------------------------
# Statistics and metrics
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
metric auth_success {
filter = event=auth_request_finished AND success=yes
}
metric auth_failures {
filter = event=auth_request_finished AND NOT success=yes
}
metric imap_command {
filter = event=imap_command_finished
group_by = cmd_name tagged_reply_state
}
metric smtp_command {
filter = event=smtp_server_command_finished
group_by = cmd_name status_code duration:exponential:1:5:10
}
metric mail_delivery {
filter = event=mail_delivery_finished
group_by = duration:exponential:1:5:10
}
# -------------------------------------------------------------
# Publish to HTTP using OpenMetrics format
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
service stats {
inet_listener http {
address = {{ ip_internal }}
port = 9900
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 18, 19:18 (4 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991451
Default Alt Text
10-metrics.conf (1 KB)

Event Timeline