File: monitoring.rst.txt

package info (click to toggle)
cyrus-imapd 3.10.0~beta1-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 86,332 kB
  • sloc: ansic: 284,810; perl: 135,824; javascript: 9,562; sh: 5,728; yacc: 2,565; cpp: 2,147; makefile: 2,133; lex: 662; xml: 621; awk: 303; python: 279; asm: 262
file content (50 lines) | stat: -rw-r--r-- 1,774 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.. _imap-admin-monitoring:

==========
Monitoring
==========

Cyrus IMAP supports monitoring using Prometheus_.

To use this functionality, Cyrus IMAP must have been built with the
``--enable-http`` configure option enabled.

.. _imap-admin-monitoring-setup:

Setup
=====

    * Set the `prometheus_enabled` setting in :cyrusman:`imapd.conf(5)` to "yes"
    * Add the `prometheus` module to your `httpmodules` in :cyrusman:`imapd.conf(5)`
    * Set the `prometheus_need_auth`, `prometheus_update_freq` and `prometheus_stats_dir`
      settings in :cyrusman:`imapd.conf(5)` to taste
    * Add a job to run :cyrusman:`promstatsd(8)` to the DAEMON section of
      :cyrusman:`cyrus.conf(5)` (the actual daemon process)
    * Add a job to run ``promstatsd -c`` to the START section of :cyrusman:`cyrus.conf(5)`
      (this cleans up the stats files from the previous run)
    * Configure your Prometheus server to scrape http://yourserver.example.com/metrics

Configuration options
=====================

    .. include:: /imap/reference/manpages/configs/imapd.conf.rst
        :start-after: startblob prometheus_enabled
        :end-before: endblob prometheus_enabled

    .. include:: /imap/reference/manpages/configs/imapd.conf.rst
        :start-after: startblob prometheus_need_auth
        :end-before: endblob prometheus_need_auth

    .. include:: /imap/reference/manpages/configs/imapd.conf.rst
        :start-after: startblob prometheus_update_freq
        :end-before: endblob prometheus_update_freq

    .. include:: /imap/reference/manpages/configs/imapd.conf.rst
        :start-after: startblob prometheus_stats_dir
        :end-before: endblob prometheus_stats_dir

.. _imap-admin-monitoring-end:

Back to :ref:`imap-admin`

.. _Prometheus: https://prometheus.io