mbee / ansible-role-postgres_exporter

Ansible role to manage Prometheus PostgreSQL Exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-role-postgres_exporter

Installs the PostgreSQL Exporter for Prometheus.

Build Status

Requirements

Requires Ansible role bdellegrazie.ansible-role-prometheus_exporter

Role Variables

Variable Description Default
postgres_exporter_version Version of the exporter to use 0.2.1
postgres_exporter_tarball_checksum checksum of the tarball sha1 checksum of 0.2.1 tarball
postgres_exporter_datasource DATASOURCE definition user=postgres host=/var/run/postgresql/ sslmode=disable

| postgres_exporter_flags| Command line flags | ['extend.query-path': "{{ postgres_exporter_home }}/queries.yml'] |

The following option is always provided: -collector.textfile.directory /var/lib/postgres_exporter Ensures the textfile capability is enabled Other variables are in defaults/main.yml

Dependencies

`bdellegrazie.ansible-role-prometheus_exporter`

Example Playbook

- hosts: all
  roles:
    - { role: bdellegrazie.postgres_exporter }

License

GPLv3

Author Information

https://github.com/bdellegrazie/ansible-role-postgres_exporter

About

Ansible role to manage Prometheus PostgreSQL Exporter

License:GNU General Public License v3.0


Languages

Language:Ruby 60.4%Language:Shell 39.6%