Lusitaniae.prometheus-exporter-installer
Ansible Role: Prometheus Exporter Installer
This Ansible role helps you install Prometheus exporters on your server.
It works with all exporters that follow a similar setup as the official ones. The tool promu is used to create and package the exporters for different types of systems and then upload the final packages to GitHub.
Use Case
- Install one or more exporters on a system.
- Useful for running traditional virtual machines that may be used for multiple services.
Requirements
- None.
Example Playbook
- hosts: localhost
vars:
prometheus_exporter_install_plugins:
- name: Apache Exporter
github_user: Lusitaniae
github_name: apache_exporter
github_version: 0.4.0
exporter_args: -scrape_uri http://localhost/server-status/?auto
- name: Memcached Exporter
github_user: prometheus
github_name: memcached_exporter
github_version: 0.3.0
exporter_args:
# This exporter has a different naming rule,
# so you can customize the download link using github_release
- name: Redis Exporter
github_user: oliver006
github_name: redis_exporter
github_version: 1.27.0
github_release: https://github.com/oliver006/redis_exporter/releases/download/v1.27.0/redis_exporter-v1.27.0.linux-386.tar.gz
install_path: /usr/local/bin/redis_exporter
exporter_args: "--redis.addr=redis://{{ redis_hostname }}:6379"
roles:
- Lusitaniae.prometheus-exporter-installer
License
- MIT
Installa
ansible-galaxy install Lusitaniae.prometheus-exporter-installerLicenza
mit
Download
6.4k
Proprietario
Medium rare coder with an acquired taste for dry steak.
