Skip to content

Commit 4864a35

Browse files
committed
doveadm-stats: Rewrite man page
1 parent 19099b0 commit 4864a35

File tree

1 file changed

+79
-35
lines changed

1 file changed

+79
-35
lines changed

docs/core/man/doveadm-stats.1.md

Lines changed: 79 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,66 +8,110 @@ dovecotComponent: core
88

99
## SYNOPSIS
1010

11-
**doveadm stats dump** [ **-s \<stats socket path\>** ] **\<type\>** [ **\<filter\>** ]
11+
**doveadm** [*GLOBAL OPTIONS*] **stats add** [ **-\-description** *\<string\>* ] [ **-\-exporter** *\<name\>* ] [ **-\-exporter-include** *\<fields\>* ] [ **-\-fields** *\<fields\>* ] [**-\-group_by** *\<fields\>* ] *name* *\<filter\>*
1212

13-
**doveadm stats top** [ **-s \<stats socket path\>** ] [ **-b** ] [ **sort** *\<field\>* ]
13+
**doveadm** [*GLOBAL OPTIONS*] **stats dump** [ **-s** *\<stats socket path\>* ] [ **-r** ] [ **-f** *\<fields\>* ]
1414

15-
**doveadm stats reset** [ **-s \<stats socket path\>** ]
15+
**doveadm** [*GLOBAL OPTIONS*] **stats remove** [ *\<name\>* ]
1616

17-
**doveadm stats add** [ **-\-description** *\<string\>* ] [ **-\-exporter** *\<name\>* ] [ **-\-exporter-include** *\<field\>* ] [ **-\-fields** *\<fields\>* ] [**-\-group_by** *\<fields\>* ] **\<name\>** *\<filter\>*
17+
**doveadm** [*GLOBAL OPTIONS*] **stats reopen**
1818

19-
**doveadm stats remove** *\<name\>*
19+
## DESCRIPTION
2020

21-
**doveadm stats reopen**
21+
Commands to inspect and edit Dovecot stats/metrics generation.
2222

23-
## DESCRIPTION
23+
<!-- @include: include/global-options.inc -->
2424

25-
**doveadm stats dump** is used to output statistics
25+
## COMMANDS
2626

27-
**doveadm stats top** is used to monitor statistics
27+
### stats add
2828

29-
**doveadm stats reset** is used to reset statistics
29+
**doveadm** [*GLOBAL OPTIONS*] **stats add** [ **-\-description** *\<string\>* ] [ **-\-exporter** *\<name\>* ] [ **-\-exporter-include** *\<fields\>* ] [ **-\-fields** *\<fields\>* ] [**-\-group_by** *\<fields\>* ] *name* *\<filter\>*
3030

31-
**doveadm stats add** is used to add metrics to statistics
31+
**doveadm stats add** is used to add metrics to statistics.
3232

33-
**doveadm stats remove** is used to remove metrics from statistics
33+
#### OPTIONS
3434

35-
**doveadm stats reopen** is used to reopen any file exporter files.
35+
**--description** *\<string\>*
36+
: Human-readable description of the metric. This is included in the HELP text
37+
sent to OpenMetrics.
3638

37-
## OPTIONS
39+
**--exporter** *\<name\>*
40+
: Export events matching the filter with this event exporter.
41+
If empty, the events are used only for statistics, and no exporting is done.
3842

39-
**-s** *socketpath*
40-
: Sets stats socket path
43+
**--exporter-include** *\<fields\>*
44+
: Specifies which parts of the event are exported to the serialized event.
45+
The fields are space-separated.
46+
47+
**--fields** *\<fields\>*
48+
: A list of fields included in the metric. All events have a default `duration`
49+
field that does not need to be listed explicitly.
50+
51+
**--group-by** *\<fields\>*
52+
: Creates a new group_by for dynamically generating sub-metrics based on the
53+
specified field's values.
54+
55+
#### ARGUMENTS
56+
57+
*name*
58+
: Metric name.
59+
60+
*filter*
61+
: Filter options:
62+
63+
- **user=\<wildcard\>**
64+
: Match user.
65+
66+
- **domain=\<wildcard\>**
67+
: Match DNS domain name.
4168

42-
**-b**
43-
: Show disk input/output bytes
69+
- **session=\<str\>**
70+
: Match session identifier.
4471

45-
## ARGUMENTS
72+
- **ip=\<ip\>[/\<mask\>]**
73+
: Match local or remote IP.
4674

47-
**dump** accepts following types: command, session, user, domain, ip and
48-
global.
75+
- **since=\<timestamp\>**
76+
: Match session start time.
4977

50-
Filter can be
78+
- **connected**
79+
: Show only connected sessions.
5180

52-
**user=\<wildcard\>**
53-
: Match given user.
81+
### stats dump
5482

55-
**domain=\<wildcard\>**
56-
: Match given DNS domain name
83+
**doveadm** [*GLOBAL OPTIONS*] **stats dump** [ **-s** *\<stats socket path\>* ] [ **-r** ] [ **-f** *\<fields\>* ]
5784

58-
**session=\<str\>**
59-
: Match session identifier
85+
**doveadm stats dump** is used to output statistics.
6086

61-
**ip=\<ip\>[/\<mask\>]**
62-
: Match local or remote IP
87+
#### OPTIONS
6388

64-
**since=\<timestamp\>**
65-
: Match session start time
89+
**-f**
90+
: TODO
6691

67-
**connected**
68-
: Show only connected sessions
92+
**-r**
93+
: Resets statistics after dumping.
6994

70-
**top** accepts any valid field name to sort along with.
95+
**-s** *socketpath*
96+
: Stats socket path.
97+
98+
### stats remove
99+
100+
**doveadm** [*GLOBAL OPTIONS*] **stats remove** [ *\<name\>* ]
101+
102+
**doveadm stats remove** is used to remove metrics from statistics.
103+
104+
#### ARGUMENTS
105+
106+
*name*
107+
108+
: The metric name to remove.
109+
110+
### stats reopen
111+
112+
**doveadm** [*GLOBAL OPTIONS*] **stats reopen**
113+
114+
**doveadm stats reopen** is used to reopen any file exporter files.
71115

72116
<!-- @include: include/reporting-bugs.inc -->
73117

0 commit comments

Comments
 (0)