Page MenuHomeDevCentral

D3387.diff
No OneTemporary

D3387.diff

diff --git a/roles/mailserver/dovecot/files/conf.d/10-metrics.conf b/roles/mailserver/dovecot/files/conf.d/10-metrics.conf
new file mode 100644
--- /dev/null
+++ b/roles/mailserver/dovecot/files/conf.d/10-metrics.conf
@@ -0,0 +1,51 @@
+# -------------------------------------------------------------
+# 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 {
+ port = 9900
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 09:23 (18 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257653
Default Alt Text
D3387.diff (1 KB)

Event Timeline