Skip to content

Commit d7fbcd6

Browse files
Ma27github-actions[bot]
authored andcommitted
nixos/dovecot-exporter: fix documentation for old stats
(cherry picked from commit 6fb847c)
1 parent 619cf60 commit d7fbcd6

File tree

1 file changed

+16
-1
lines changed
  • nixos/modules/services/monitoring/prometheus/exporters

1 file changed

+16
-1
lines changed

nixos/modules/services/monitoring/prometheus/exporters/dovecot.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,28 @@ in
3535
{
3636
<xref linkend="opt-services.prometheus.exporters.dovecot.enable" /> = true;
3737
<xref linkend="opt-services.prometheus.exporters.dovecot.socketPath" /> = "/var/run/dovecot2/old-stats";
38+
<xref linkend="opt-services.dovecot2.mailPlugins.globally.enable" /> = [ "old_stats" ];
3839
<xref linkend="opt-services.dovecot2.extraConfig" /> = '''
39-
mail_plugins = $mail_plugins old_stats
4040
service old-stats {
4141
unix_listener old-stats {
4242
user = dovecot-exporter
4343
group = dovecot-exporter
44+
mode = 0660
4445
}
46+
fifo_listener old-stats-mail {
47+
mode = 0660
48+
user = dovecot
49+
group = dovecot
50+
}
51+
fifo_listener old-stats-user {
52+
mode = 0660
53+
user = dovecot
54+
group = dovecot
55+
}
56+
}
57+
plugin {
58+
old_stats_refresh = 30 secs
59+
old_stats_track_cmds = yes
4560
}
4661
''';
4762
}

0 commit comments

Comments
 (0)