DOVEADM-STATS(1)
π
DOVEADM-STATS(1) β the doveadm-stats page, bestie edition
okay so hi. you're looking at the manual page for doveadm-stats from Dovecot, and honestly? it's giving "tiny page, big power." it's short, it's cute, it does exactly what it says on the tin. let's get into it π
β¨ NAME β¨
doveadm-stats β Inspect or reset stats. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
doveadm [GLOBAL OPTIONS] stats add [ --description <string> ] [
--exporter <name> ] [ --exporter-include <fields> ] [ --fields <fields>
] [--group_by <fields> ] name <filter>
doveadm [GLOBAL OPTIONS] stats dump [ -s <stats socket path> ] [ -r ] [
-f <fields> ]
doveadm [GLOBAL OPTIONS] stats top [-s <stats socket path>] [-b] [sort
<field>]
doveadm [GLOBAL OPTIONS] stats remove [ <name> ]
doveadm [GLOBAL OPTIONS] stats reopen
π¦ DESCRIPTION π¦
Commands to inspect and edit Dovecot stats/metrics generation. look at her. she's the stats control room. πβ¨
π GLOBAL OPTIONS π
these are the global doveadm(1) options, so they work for everybody in the doveadm friend group, not just stats:
-Dβ Enables verbosity and debug messages. basically: "tell me EVERYTHING." π£οΈ-Oβ Do not read any config file, just use defaults. Thedovecot_storage_versionsetting defaults to the latest version, but can be overridden with-o. no cap, this one just ignores your config entirely. π-kβ Preserve entire environment fordoveadm, not justimport_environmentsetting. keep the whole env, don't be picky about it. π-vβ Enables verbosity, including progress counter. yay, numbers going up. π-iinstance-name β If using multiple Dovecot instances, choose the config file based on this instance name. Seeinstance_namesetting for more information. it's giving "which twin are you." π―-cconfig-file β Read configuration from the given config-file. By default it first reads config socket, and then falls back to/etc/dovecot/dovecot.conf. You can also point this to config socket of some instance running compatible version. so many options, so little time. π«Ά-osetting=value β Overrides the configuration setting from/etc/dovecot/dovecot.confand from the userdb with the given value. In order to override multiple settings, the-ooption may be specified multiple times. stack 'em like bracelets. π
π₯ COMMANDS π₯
π stats add
doveadm [GLOBAL OPTIONS] stats add [ --description <string> ] [
--exporter <name> ] [ --exporter-include <fields> ] [ --fields <fields>
] [--group_by <fields> ] name <filter>
doveadm stats add is used to add metrics to statistics. new metric just dropped. β¨
π OPTIONS
--descriptionstring β Human-readable description of the metric. This is included in the HELP text sent to OpenMetrics. be nice, someone's gonna read it. π--exportername β Export events matching the filter with this event exporter. If empty, the events are used only for statistics, and no exporting is done. lowkey "leave blank and she minds her business." π§--exporter-includefields β Specifies which parts of the event are exported to the serialized event. The fields are space-separated. space-separated!! not comma!! iykyk. π«Ά--fieldsfields β A list of fields included in the metric. All events have a defaultdurationfield that does not need to be listed explicitly. so don't listduration, she's already there, she's an icon. π--group-byfields β Creates a newgroup_byfor dynamically generating sub-metrics based on the specified field's values. sub-metrics. sub-metrics everywhere. π¦
π ARGUMENTS
- name β Metric name. just the name. call her by her name. π
- filter β Filter options:
user=<wildcard>β Match user.domain=<wildcard>β Match DNS domain name.session=<str>β Match session identifier.ip=<ip>[/<mask>]β Match local or remote IP.since=<timestamp>β Match session start time.connectedβ Show only connected sessions.
π stats dump
doveadm [GLOBAL OPTIONS] stats dump [ -s <stats socket path> ] [ -r ] [
-f <fields> ]
doveadm stats dump is used to output statistics. dump it, queen. π€
π OPTIONS
-fβ TODO. yes bestie, the manpage literally just says TODO. we don't know. nobody knows. it remains a mystery. π-rβ Resets statistics after dumping. dump AND reset, a double feature. π₯-ssocketpath β Stats socket path. tell her where the socket lives. π
π stats remove
doveadm [GLOBAL OPTIONS] stats remove [ <name> ]
doveadm stats remove is used to remove metrics from statistics. bye bestie π (affectionate) (necessary)
π ARGUMENTS
- name β The metric name to remove. that's the one getting yeeted. π
β stats reopen
doveadm [GLOBAL OPTIONS] stats reopen
doveadm stats reopen is used to reopen any file exporter files. sometimes you just gotta close the door and open it again, spiritually. πͺβ¨
π REPORTING BUGS π
Report bugs, including doveconf -n output, to the Dovecot Mailing List β¨dovecot@dovecot.orgβ©. Information about reporting bugs is available at: β¨https://dovecot.org/bugreport.htmlβ©
fr fr include the doveconf -n output, they're gonna ask for it anyway. save yourself the round trip. π«Ά
π SEE ALSO π
and that's the whole page, bestie. this was DOVEADM-STATS(1) from the Dovecot manual, source/version f979264, dated April 2026. go forth and inspect some stats. slay. π
β¨π¦
π¦ where this page comes from
- alpine 3.23: dovecot-doc 2.4.5-r0 Β· MIT AND LGPL-2.1-or-later
- alpine 3.24: dovecot-doc 2.4.5-r0 Β· MIT AND LGPL-2.1-or-later
- arch rolling: dovecot 2.4.5-1 Β· MIT AND LGPL-2.1-only
- fedora 43: dovecot 1:2.4.5-1.fc43 Β· MIT AND LGPL-2.1-only
- fedora 44: dovecot 1:2.4.5-1.fc44 Β· MIT AND LGPL-2.1-only
- nixos 26.05: dovecot 2.4.5
- nixpkgs unstable: dovecot 2.4.5
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms