/postgresql_exporter

A Prometheus exporter for some postgresql metrics

Primary LanguageGo

postgresql_exporter

A Prometheus exporter for some postgresql metrics.

You can add as many database connections as you like to the config.yml file, and run it with:

./postgresql_exporter -config=my/config.yml

Then you can add hostname:9111 to the prometheus scrapes config:

- job_name: 'postgresql'
  static_configs:
    - targets: ['localhost:9111']

And voilá, metrics should be there and you should be able to query, graph and alert on them.

Running it within Docker

docker run -p 9111 -v /path/to/my/config.yml:/config.yml caninjas/postgresql_exporter