-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feed Dovecot maildir stats into Prometheus #505
Conversation
- name: Report to DevOps when Maildir size exporter fails | ||
ansible.builtin.cron: | ||
name: MAILTO | ||
env: yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ansible Lint is complaining about this line:
env: yes | |
env: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAML is brilliant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another minor thing with this: the dovecot_maildir_size_bytes
metric is not actually exposing bytes, it's exposing kilobytes, on account of the fact that du
, by default, outputs units of 1024 bytes:
joe@lovelace:~$ sudo du -s /var/vmail/joe
5260 /var/vmail/joe
joe@lovelace:~$ sudo du -sh /var/vmail/joe
5.2M /var/vmail/joe
Grafana dash for email: https://grafana.pydis.wtf/d/edw0wuqz1yccgf/email?orgId=2 |
fb25251
to
22af8a7
Compare
Thanks for the review, script has been adjusted to use `--bytes` (how do
you already use 5 MB for your maildir?) and YAML dictator should be
pleased.
|
Already deployed on lovelace. I was going to leave out script deployment and just write it inline, but YAML folding of long lines (and unreadability of 200 column-wide AWk scripts, to be honest) made it a bit bad. The e-mail for DevOps cron failure reports is updated to include `+cron` to allow for client-side filtering, if necessary. To test: `ssh -L localhost:9090:localhost:9090 lovelace.box.pydis.wtf`, then check out the `dovecot_` variables in the UI. We might want to further check out Dovecot's built-in statistics support, see https://doc.dovecot.org/2.3/configuration_manual/stats/.
22af8a7
to
dfb87d1
Compare
Merged into main. Thanks! |
Already deployed on lovelace. I was going to leave out script deployment
and just write it inline, but YAML folding of long lines (and
unreadability of 200 column-wide AWk scripts, to be honest) made it a
bit bad.
The e-mail for DevOps cron failure reports is updated to include
+cron
to allow for client-side filtering, if necessary.
To test:
ssh -L localhost:9090:localhost:9090 lovelace.box.pydis.wtf
,then check out the
dovecot_
variables in the UI.We might want to further check out Dovecot's built-in statistics
support, see https://doc.dovecot.org/2.3/configuration_manual/stats/.