scalair.ansible_vmware_exporter

Ansible Role: VMware Exporter

Build Status

This Ansible role installs and sets up the VMware exporter, which is used with Prometheus for monitoring.

Requirements

No special requirements are needed, but this role requires root access. Make sure to run it with become: yes.

Role Variables

Below are the available variables and their default values (found in defaults/main.yml):

vmware_exporter_port: 9272

This sets the port for the VMware exporter HTTP endpoint.

vmware_exporter_targets: []

This variable holds a list of vSphere hosts that the VMware exporter will connect to. Check the configuration file of the VMware exporter for more details on how to set this variable.

For examples, see 'Example Playbook' below or look in defaults/main.yml.

Dependencies

If you're using CentOS or a Red Hat derivative, you need:

  • geerlingguy.repo-epel

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

This project is licensed under the Apache License 2.0.

Author Information

This role was created by Julien Delvecchio in 2019.

Informazioni sul progetto

Ansible role that installs and configures prometheus vmware_exporter

Installa
ansible-galaxy install scalair.ansible_vmware_exporter
Licenza
apache-2.0
Download
117
Proprietario
Public and private cloud operator