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

     1  mackerel-plugin-postgres
     2  ========================
     3  
     4  PostgreSQL custom metrics plugin for mackerel.io agent.
     5  
     6  ## Synopsis
     7  
     8  ```shell
     9  mackerel-plugin-postgres -user=<username> -password=<password> [-database=<databasename>] [-sslmode=<sslmode>] [-metric-key-prefix=<prefix>] [-connect_timeout=<timeout>]
    10  ```
    11  `-database` is optional.
    12  
    13  ## Example of mackerel-agent.conf
    14  
    15  ```
    16  [plugin.metrics.postgres]
    17  command = "/path/to/mackerel-plugin-postgres -user=test -password=secret -database=databasename"
    18  ```
    19  
    20  ## References
    21  
    22  - [PostgreSQL Documentation (27.2. The Statistics Collector)](http://www.postgresql.org/docs/9.3/static/monitoring-stats.html)