Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uses old dovecot stats module #8

Open
jelmer opened this issue Aug 1, 2018 · 10 comments
Open

uses old dovecot stats module #8

jelmer opened this issue Aug 1, 2018 · 10 comments

Comments

@jelmer
Copy link
Contributor

jelmer commented Aug 1, 2018

This exporter relies on the old style dovecot stats module (https://wiki2.dovecot.org/Statistics/Old), which has been replaced with a new (built-in) system as of version 2.3 (https://wiki2.dovecot.org/Statistics)

@BartVerc
Copy link
Member

Thanks for your issue.
Feel free to send a pull request, unfortunately we are currently not working on this.

@ageis
Copy link

ageis commented Oct 16, 2018

I never got it working either way, with the old or new stats modules. Always received a message roughly like this:

dovecot_exporter[13321]: 2018/10/16 16:37:37 Failed to scrape socket: Input does not provide any columns```

@BartVerc
Copy link
Member

@ageis does sudo doveadm stats dump user give the right output?

Ma27 added a commit to Ma27/nixpkgs that referenced this issue Jan 23, 2019
In Dovecot 2.3[1] the stats module changed and now the UNIX socket
provided by Dovecot by default isn't compatible anymore with the
exporter[2]. By enabling the `old-stats` plugin in Dovecot this issue
can be solved which should be documented in this module.

[1] https://wiki2.dovecot.org/Upgrading/2.3
[2] kumina/dovecot_exporter#8
danbst pushed a commit to danbst/nixpkgs that referenced this issue Jan 31, 2019
In Dovecot 2.3[1] the stats module changed and now the UNIX socket
provided by Dovecot by default isn't compatible anymore with the
exporter[2]. By enabling the `old-stats` plugin in Dovecot this issue
can be solved which should be documented in this module.

[1] https://wiki2.dovecot.org/Upgrading/2.3
[2] kumina/dovecot_exporter#8
@dpunkturban
Copy link

I'm receiving the same output as @ageis

Is there any fix for that?

2.2.36 (1f10bfa63)```

Thanks

@jpotier
Copy link

jpotier commented Aug 12, 2019

Same error than @ageis for dovecot 2.3.4

@L0ric0
Copy link

L0ric0 commented Jan 16, 2020

see https://doc.dovecot.org/configuration_manual/stats/old_statistics/#old-statistics to configure the old stats and https://wiki2.dovecot.org/Upgrading/2.3 vor the changes to the setings names.

for me it works on dovecot 2.3.9

@yousifAlkha
Copy link

@L0ric0
How did you got it to work ?
I've been trying to get it to work but it just wont export the statistics.

@mrueg
Copy link

mrueg commented Apr 30, 2020

FWIW, it looks like dovecot gets native support for prometheus-style metrics soon: dovecot/core@d22a324

@L0ric0
Copy link

L0ric0 commented May 6, 2020

@L0ric0
How did you got it to work ?
I've been trying to get it to work but it just wont export the statistics.

in conf.d/10-old-stats.conf

service old-stats {
    fifo_listener old-stats-mail {
        user = vmail
        mode = 0600
    }
}

plugin {
    old_stats_refresh = 30 secs
    old_stats_track_cmds = yes
}

i think that was all, as it was some time ago i don't know if there was more

@Pectojin
Copy link

For anyone else coming across this, it is officially supported in dovecot from version 2.3.11 https://doc.dovecot.org/configuration_manual/stats/openmetrics/

Can't install it on focal, but I got it working on hirsute. It's very simple to configure now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants