Coder Social home page Coder Social logo

ansible-role-prometheus-exporter's Introduction

Ansible Role: prometheus-exporter

Installs and configure a generic prometheus exporter given its binary url path.

Requirements

Role Variables

Please look at the defaults/main.yml to see all default variables.

prometheus_exporter_path: /opt/prometheus-exporters

The directory path to use for install Prometheus exporters.

prometheus_exporter_list.[].name

Exporter service/binary name to be installed on target machine

prometheus_exporter_list.[].url

Exporter binary url, compressed or pure binary)

prometheus_exporter_list.[].unpack

Unpack file if it's compressed

prometheus_exporter_list.[].args

Exporter arguments

prometheus_exporter_list.[].config_files.[].src

Local exporter config file path to copy. Not a jinja template.

prometheus_exporter_list.[].config_files.[].path

Remote exporter config file path

Example Playbook

---
- name: My production server
  hosts: all
  vars:
    prometheus_exporter_path: /opt/prometheus-exporters
    prometheus_exporter_list:
      - name: monit
        url: https://github.com/commercetools/monit_exporter/releases/download/v0.0.2/monit_exporter
      - name: process
        url: https://github.com/ncabatoff/process-exporter/releases/download/v0.6.0/process-exporter-0.6.0.linux-amd64.tar.gz
        unpack: true
        unpack_path_tmp: /tmp/process-exporter-0.6.0.linux-amd64/process-exporter
        args: "-config.path=/etc/prom-exporter-process.yml"
        config_files:
          - src: "{{ playbook_dir }}/files/process-exporter.yml"
            path: {{ prometheus_exporter_path }}/-process-exporter.yml
        envs:
          USERNAME=helloworld

  roles:
    - role: prometheus-exporter
      tags: prometheus-exporter

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.