2023-07-24 17:56:22 +02:00
2023-07-24 14:26:57 +02:00
2023-07-20 10:02:30 +02:00
2023-04-21 15:25:46 +02:00
2022-11-11 21:09:19 +01:00
2023-07-24 17:56:22 +02:00

prometheus

The present role :

Please note that Docker and Haproxy their own embedded exporters.

The role has been successfully tested on :

  • Debian 9
  • Debian 10
  • Debian 11

Forced upgrade of installed exporters can be done by setting the extra parameters "exporter_upgrade" to "yes".

ansible-playbook playbook/myhost.yml -t prometheus -e "exporter_upgrade=yes"

Role variables

Dependencies

  • jq
  • Docker must installed and running for prometheus server

Example Playbook

- hosts: prometheus
  ignore_errors: "{{ ansible_check_mode }}" # ignore errors only in check mode !

  roles:
    - { role: brainsys.prometheus, tags: ['prometheus'] }

Example variables

---
prometheus_server_enable: 'true'
prometheus_server_monitor: 'example'

prometheus_exporter_packages:
  - node
  - mysqld

prometheus_mysqld_exporter_user: 'foo'
prometheus_mysqld_exporter_password: 'bar'

prometheus_node_exporter_targets:
  - server01
  - server02

prometheus_mysqld_exporter_targets:
  - server01

TODO

  • documentation
    • review / enhance documentation
  • memcached
    • add options to exporter launch
      • --memcached.address="localhost:11211"
      • --memcached.timeout=1s
      • --memcached.pid-file=""
    • handle multi instances for memcached exporter

License

GPLv3

Author Information

Written by Ludovic Cartier ludovic.cartier@brainsys.io

Description
No description provided
Readme
Languages
Jinja 100%