nixos/dovecot-exporter: fix documentation for old stats

(cherry picked from commit 6fb847c55643780c1ba3a98c57ba57541ed33d14)
This commit is contained in:
Maximilian Bosch 2021-06-03 13:01:11 +02:00 committed by github-actions[bot]
parent 619cf60d25
commit d7fbcd60a3
1 changed files with 16 additions and 1 deletions

View File

@ -35,13 +35,28 @@ in
{ {
<xref linkend="opt-services.prometheus.exporters.dovecot.enable" /> = true; <xref linkend="opt-services.prometheus.exporters.dovecot.enable" /> = true;
<xref linkend="opt-services.prometheus.exporters.dovecot.socketPath" /> = "/var/run/dovecot2/old-stats"; <xref linkend="opt-services.prometheus.exporters.dovecot.socketPath" /> = "/var/run/dovecot2/old-stats";
<xref linkend="opt-services.dovecot2.mailPlugins.globally.enable" /> = [ "old_stats" ];
<xref linkend="opt-services.dovecot2.extraConfig" /> = ''' <xref linkend="opt-services.dovecot2.extraConfig" /> = '''
mail_plugins = $mail_plugins old_stats
service old-stats { service old-stats {
unix_listener old-stats { unix_listener old-stats {
user = dovecot-exporter user = dovecot-exporter
group = dovecot-exporter group = dovecot-exporter
mode = 0660
} }
fifo_listener old-stats-mail {
mode = 0660
user = dovecot
group = dovecot
}
fifo_listener old-stats-user {
mode = 0660
user = dovecot
group = dovecot
}
}
plugin {
old_stats_refresh = 30 secs
old_stats_track_cmds = yes
} }
'''; ''';
} }