Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768310
D3387.id8744.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3387.id8744.diff
View Options
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,52 @@
+# -------------------------------------------------------------
+# 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
+}
+
+
+## service stats socket
+
+service stats {
+ inet_listener http {
+ port = 9900
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 07:26 (16 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258272
Default Alt Text
D3387.id8744.diff (1 KB)
Attached To
Mode
D3387: Expose metrics for dovecot
Attached
Detach File
Event Timeline
Log In to Comment