Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug report: configured dovecot stats/metrics are always 0Β #4164

@litetex

Description

@litetex

πŸ“ Preliminary Checks

  • I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.

πŸ‘€ What Happened?

I tried to configure dovecot statistics/metrics inside DMS like this
dovecot.cf

// Proxying code from https://docker-mailserver.github.io/docker-mailserver/latest/examples/tutorials/mailserver-behind-proxy/#dms-postfix-dovecot (last infobox)
haproxy_trusted_networks=192.168.0.0/16 172.16.0.0/12 10.0.0.0/8

service imap-login {
  inet_listener imaps-proxied {
    haproxy = yes
    port = 10993
    ssl = yes
  }
}

// ...

// Example as described inside https://doc.dovecot.org/configuration_manual/stats/openmetrics/
service stats {
  inet_listener http {
    port = 9900
  }
}

metric auth_success {
  filter = (event=auth_request_finished AND success=yes)
}

metric imap_command {
  filter = event=imap_command_finished
  group_by = cmd_name tagged_reply_state
}

metric smtp_command {
  filter = event=smtp_server_command_finished
  group_by = cmd_name status_code duration:exponential:1:5:10
}

metric mail_delivery {
  filter = event=mail_delivery_finished
  group_by = duration:exponential:1:5:10
}

However the metrics are always the same and never change to other values.

I also tried to manually run doveadm stats dump however this results in:
Fatal: net_connect_unix(/run/dovecot/stats-reader) failed: No such file or directory

πŸ‘Ÿ Reproduction Steps

See description

πŸ‹ DMS Version

14.0.0

πŸ’» Operating System and Architecture

irrelevant

βš™οΈ Container configuration files

No response

πŸ“œ Relevant log output

No response

Improvements to this form?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions