sbaerlocher.wmi_exporter

Ansible Role: wmi_exporter

Build Status license Ansible Galaxy Ansible Role

Description

This is an Ansible role that installs the wmi_exporter on a Windows system. You can install it using Chocolatey (choco) or as a regular package.

Installation

To install this role, run:

ansible-galaxy install sbaerlocher.wmi_exporter

Requirements

Role Variables

Version

The latest version of wmi_exporter will be used unless you specify a 'wmi_exporter_version'.

Architecture

Specify the architecture for the wmi_exporter you want to install.

wmi_exporter_architecture: amd64

Install Parameters

You can set various Windows installation parameters for the wmi_exporter. For more details, you can look here.

  • To select which collectors are enabled, use the --collectors.enabled flag and provide a comma-separated list.
wmi_exporter_enabled_collectors:
  • Specify the IP address to bind to (default is 0.0.0.0).
wmi_exporter_listen_addr:
  • Specify the port to bind to (default is 9182).
wmi_exporter_listen_port:
  • Set the path to serve metrics (default is /metrics).
wmi_exporter_metrics_path:
  • Specify a directory to read text files with metrics from, using the --collector.textfile.directory flag.
wmi_exporter_textfile_dir:
  • You can pass additional command-line flags (default is empty).
wmi_exporter_extra_flags:
  • Decide whether to ignore an existing choco installation and enforce installation as a package (default is false).
wmi_exporter_force_package: false

Global Variable

Proxy

If you are using a proxy, you can set the proxy details. By default, these will be taken from default_* variables. If they are not defined, they will be ignored.

wmi_exporter_proxy: '{{ default_proxy | default(omit) }}'
wmi_exporter_proxy_password: '{{ default_proxy_password | default(omit) }}'
wmi_exporter_proxy_username: '{{ default_proxy_username | default(omit) }}'
wmi_exporter_validate_certs: '{{ default_validate_certs | default(true) }}'

Package

Specify the download directory for the wmi_exporter installation files.

wmi_exporter_download_directory: "{{ ansible_env.TEMP }}\\wmi_exporter"

Dependencies

Example Playbook

Here is an example of how to use this role in a playbook:

- hosts: all
  roles:
    - sbaerlocher.wmi_exporter

Author

License

This project is licensed under the MIT License. You can view the full license text in the LICENSE file.

(c) 2019, Simon Bärlocher

Informazioni sul progetto

Ansible roles that installs wmi_exporter on a Windows system.

Installa
ansible-galaxy install sbaerlocher.wmi_exporter
Licenza
Unknown
Download
572.2k
Proprietario
Technology Evangelist / System Engineer by @whatwedo / Project Manager @arillso / @ansible and @nuxt fan / Based in #Bern