github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-mailq/README.md (about)

     1  ## mackerel-plugin-mailq
     2  
     3  This plugin collects the number of messages in the processing queue of MTAs.
     4  [Exim](http://www.exim.org/), [Postfix](http://www.postfix.org/) and [qmail](https://cr.yp.to/qmail.html) are supported.
     5  
     6  ### Usage
     7  
     8  ```
     9  mackerel-plugin-mailq -M <mta> [-metric-key-prefix <prefix>] [-metric-label-prefix <prefix>]
    10  ```
    11  
    12  #### Options
    13  ```
    14  -M   Name of MTA: exim, postfix, or qmail (mandatory)
    15  -c   Path to queue-printing command, such as postqueue for postfix and qmail-qstat for qmail.
    16       Give this option if the command has non-standard name. Usually it can be guessed from the -M option
    17  ```
    18  
    19  ### Example agent configuration
    20  ```toml
    21  [plugin.metrics.mailq]
    22  command = "/usr/local/bin/mackerel-plugin-mailq -M postfix"
    23  ```