logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

promstatsd - Cyrus IMAP documentation

Author

       The Cyrus Team

Description

promstatsd is the Cyrus Prometheus statistics collating daemon.

       When  the  prometheus_enabledimapd.conf(5)  setting is true, various Cyrus service processes will count
       statistics as they run.  promstatsd collates these statistics into a text-based  report  that  Prometheus
       can ingest.

       The  report  produced by promstatsd is served by httpd(8) at the "/metrics" URL, if "prometheus" has been
       set in httpmodules in imapd.conf(5).

       promstatsd reads its configuration options out of the imapd.conf(5) file unless  specified  otherwise  by
       -C.

       In  the  first synopsis, promstatsd will run as a daemon, updating the report at the specified frequency.
       If the optional -ffrequency argument is not provided, the prometheus_update_freq from imapd.conf(5) will
       be used, which defaults to 10 seconds.  This  invocation  should  be  run  from  the  DAEMON  section  of
       cyrus.conf(5) (see Examples below).

       In  the  second  synopsis,  promstatsd will clean up all statistics files and exit.  The statistics Cyrus
       maintains are only valid while Cyrus is running, so this invocation must be run from the START section of
       cyrus.conf(5) (see Examples below) to clean up after the previous run, before new service  processes  are
       started.

       In  the  third  synopsis, promstatsd will immediately update the report once, and then exit.  This can be
       safely used while another promstatsd process runs in daemon form.  It is useful if you need to update the
       report now for some reason, rather than waiting for the daemon's next update.

Examples

       To regularly produce a report that Prometheus can consume, promstatsd must be run from the DAEMON section
       of cyrus.conf(5) as per the first synopsis, like so:

          DAEMON {
              promstatsdcmd="promstatsd"
          }

       Toensureacleanstatisticalstateatstartup,promstatsdmustberunfromtheSTARTsectionofcyrus.conf(5)asperthesecondsynopsis,likeso:START{statscleanupcmd="promstatsd-c"}

Files

History

Name

       promstatsd - Cyrus IMAP documentation

       Cyrus Prometheus statistics collating daemon

Options

-Cconfig-file
              Use the specified configuration file config-file rather than the default imapd.conf(5).

       -D     Run the external debugger specified in the debug_commandimapd.conf(5) option.

       -1     Update the report once and exit.

       -c     Clean up the stats directory and exit.

       -d     Debug mode -- promstatsd will not background itself, for aid in debugging.

       -ffrequency
              Update the report every frequency seconds.  If  not  specified,  the  prometheus_update_freq  from
              imapd.conf(5) will be used, which defaults to 10 seconds.

       -v     Increase verbosity.  Can be specified multiple times.

See Also

imapd.conf(5), cyrus.conf(5), httpd(8),

Synopsis

promstatsd [ -Cconfig-file ] [ -v ] [ -ffrequency ] [ -d ]

          promstatsd [ -Cconfig-file ] [ -v ] -cpromstatsd [ -Cconfig-file ] [ -v ] -1

See Also