Giter Site home page Giter Site logo

ome / ansible-role-prometheus-postgres Goto Github PK

View Code? Open in Web Editor NEW
25.0 8.0 26.0 59 KB

Prometheus Postgres exporter

Home Page: https://galaxy.ansible.com/ome/prometheus_postgres

License: BSD 2-Clause "Simplified" License

Python 58.33% Jinja 41.67%
prometheus postgresql postgres monitoring ome ansible

ansible-role-prometheus-postgres's Introduction

Prometheus Postgres

Actions Status Ansible Role

Prometheus Postgres exporter.

This currently uses the local postgres administrator account on the PostgreSQL server. In future this should be changed to use an unprivileged account.

See https://github.com/prometheus-community/postgres_exporter

Role Variables

All variables are optional:

  • prometheus_postgres_dbname: The database name
  • prometheus_postgres_data_source_name: implies DATA_SOURCE_NAME ENV variable in the postgres_exporter
  • prometheus_postgres_port: Serve metrics on this port, default 9187
  • prometheus_postgres_query_directory: the directory containing query files which will be loaded by the exporter, default is files/
  • prometheus_postgres_query_filenames: A list of additional query files from prometheus_postgres_query_directory, default [queries-default.yml]
  • prometheus_postgres_version: the postgres_exporter version to be installed, default 0.4.6
  • prometheus_postgres_sha256: the SHA256 checksum of the postgres_exporter bundle of version prometheus_postgres_version, default: 9ed457c9a6d3a1e0132b3fe10f1d072457a667b009993a73e90b47ca99cc5bca
  • prometheus_postgres_system_user: The OS user used to run postgres_exporter, default: postgres (OS user is created only when differs from defaults).

Example playbook

- hosts: localhost
  roles:
  - role: ome.prometheus_postgres
    prometheus_postgres_dbname: test

Author Information

[email protected]

ansible-role-prometheus-postgres's People

Contributors

glauberrbatista avatar jburel avatar joshmoore avatar khaledk2 avatar lunarthegrey avatar manics avatar martbhell avatar pwalczysko avatar sbesson avatar sgargel avatar trantienduchn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-prometheus-postgres's Issues

Supporting non-superuser

I see in the postgres-exporter had supported non-superuser. And seems like the ansible role is still using postgres user. Can you confirm that?

I'm planning to update this changes into the role, do you have any instruction or idea how I should do it? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.