Giter Club home page Giter Club logo

ansible-vmware-exporter's Introduction

Ansible role : VMware exporter

Build Status

Installs and configures VMware exporter, an exporter used by Prometheus.

Requirements

No special requirements; note that this role requires root access, so has to be ran with become: yes

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

vmware_exporter_port: 9272

The port on which the vmware_exporter http endpoint will be published.

vmware_exporter_targets: []

This variable contains a list of sections (vsphere hosts) that the vmware_exporter will connect to. It is based on the configuration file of the VMware exporter, so please refer to that before setting this variable.

Examples are provided below in 'Example Playbook' or in defaults/main.yml.

Dependencies

  • geerlingguy.repo-epel if you're using CentOS or a Red Hat derivative.

Example Playbook

- hosts: vmware_exporter_servers
  become: yes
  vars:
    vmware_exporter_targets:
      - default:
          vsphere_host: "vcenter"
          vsphere_user: "user"
          vsphere_password: "password"
          ignore_ssl: False
          collect_only:
            vms: True
            snapshots: True
            vmguests: True
            datastores: True
            hosts: True
      - limited:
          vsphere_host: "slowvc.example.com"
          vsphere_user: "[email protected]"
          vsphere_password: "password"
          ignore_ssl: True
          collect_only:
            vms: False
            snapshots: False
            vmguests: False
            datastores: True
            hosts: False

  roles:
    - role: geerlingguy.repo-epel
      when: ansible_os_family == 'RedHat'
    - scalair.vmware_exporter

License

Apache License 2.0

Author Information

This role was created in 2019 by Julien Delvecchio.

ansible-vmware-exporter's People

Contributors

jdelvecchio avatar

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.