top
(README.md)
mackerel-plugin-postgres
========================

PostgreSQL custom metrics plugin for mackerel.io agent.

## Synopsis

```shell
mackerel-plugin-postgres -user=<username> -password=<password> -database=<databasename>
```
`-database` is optional.

## Example of mackerel-agent.conf

```
[plugin.metrics.postgres]
command = "/path/to/mackerel-plugin-postgres -user=test -password=secret -database=databasename"
```

## References

- [PostgreSQL Documentation (27.2. The Statistics Collector)](http://www.postgresql.org/docs/9.3/static/monitoring-stats.html)

Imports 3 package(s)

  1. github.com/lib/pq
  2. github.com/mackerelio/go-mackerel-plugin
  3. github.com/mackerelio/mackerel-agent/logging

Test imports 1 package(s)

  1. github.com/erikstmartin/go-testdb