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

Feed Dovecot maildir stats into Prometheus #505

Closed
wants to merge 1 commit into from

Conversation

jchristgit
Copy link
Member

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/.

@github-actions github-actions bot added the group: ansible Issues and pull requests related to the Ansible setup label Aug 26, 2024
- name: Report to DevOps when Maildir size exporter fails
ansible.builtin.cron:
name: MAILTO
env: yes
Copy link
Member

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:

Suggested change
env: yes
env: true

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YAML is brilliant

Copy link
Member

@jb3 jb3 left a 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

@jb3
Copy link
Member

jb3 commented Aug 26, 2024

Grafana dash for email: https://grafana.pydis.wtf/d/edw0wuqz1yccgf/email?orgId=2

@jchristgit
Copy link
Member Author

jchristgit commented Aug 27, 2024 via email

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/.
@jb3
Copy link
Member

jb3 commented Aug 30, 2024

Merged into main. Thanks!

@jb3 jb3 closed this Aug 30, 2024
@jb3 jb3 deleted the dovecot-prometheus-stats branch August 30, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group: ansible Issues and pull requests related to the Ansible setup
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants