Skip to content

Commit 4128287

Browse files
sirainencmouse
authored andcommitted
Add recommended_metrics
1 parent eb2265b commit 4128287

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

docs/core/recommended_metrics.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: doc
3+
title: Recommended Metrics
4+
order: 101
5+
dovecotlinks:
6+
recommended_metrics: Recommended Metrics
7+
recommended_metrics_dovecot_proxy:
8+
hash: dovecot-proxy
9+
text: Dovecot Proxy
10+
recommended_metrics_dovecot_backend:
11+
hash: dovecot-backend
12+
text: Dovecot Backend
13+
---
14+
15+
# Recommended Metrics
16+
17+
<!-- @include: ../../../core/docs/core/recommended_metrics_include/header.inc -->
18+
19+
## Dovecot Proxy
20+
21+
<!-- @include: ../../../core/docs/core/recommended_metrics_include/proxy.inc -->
22+
23+
## Dovecot Backend
24+
25+
<!-- @include: ../../../core/docs/core/recommended_metrics_include/backend.inc -->
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
### Generic authentication metrics
2+
3+
`@metric_defaults = backend` contains:
4+
5+
`auth_successes`
6+
: Number of successful authentications. See [[event,auth_request_finished]].
7+
8+
`auth_failures`
9+
: Number of unsuccessful authentications. See [[event,auth_request_finished]].
10+
These are not usually expected to happen in backends. It may be useful to
11+
export these events into log:
12+
```[dovecot.conf]
13+
metric auth_failures {
14+
exporter = log-export
15+
}
16+
```
17+
18+
### Basic mail access and delivery metrics
19+
20+
`@metric_defaults = backend` contains:
21+
22+
`imap_commands`
23+
: Number of IMAP commands, grouped by OK/NO/BAD tagged reply.
24+
See [[event,imap_command_finished]].
25+
26+
`mail_deliveries`
27+
: Number of mails delivered. See [[event,mail_delivery_finished]].
28+
29+
`mail_submissions`
30+
: Number of mails submitted for outside delivery (e.g. rejects, vacations).
31+
See [[event,smtp_submit_finished]].
32+
33+
`mail_user_session_finished`
34+
: Number of mail sessions, including their RSS memory usage and user space
35+
CPU usage at the time when the session was finished. See
36+
[[event,mail_user_session_finished]].
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
This page lists recommended metrics that allow inspecting dovecot's behavior in
2+
the most general situations. More specialized situations might require further
3+
refinements or additional statistics. For an overview of how to gather
4+
statistics see [[link,stats]]. A list of all available events and their fields
5+
can be found [[link,summary_events,here]].
6+
7+
The following examples use the custom `log-export` exporter.
8+
9+
```[dovecot.conf]
10+
event_exporter log-export {
11+
format = json
12+
format_args = time-rfc3339
13+
transport = log
14+
}
15+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
`@metric_defaults = proxy` contains:
2+
3+
`auth_successes`
4+
: Number of successful authentications. See [[event,auth_request_finished]].
5+
6+
`auth_failures`
7+
: Number of unsuccessful authentications. See [[event,auth_request_finished]].
8+
It may be useful to export these events into log:
9+
```[dovecot.conf]
10+
metric auth_failures {
11+
exporter = log-export
12+
}
13+
```
14+
15+
`login_aborted`
16+
: Number of aborted logins, grouped by reason. See [[event,login_aborted]].

0 commit comments

Comments
 (0)