Ansible role for Windows Exporter setup.
1. Download and install Windows Exporter.
2. Configure Windows Exporter with config.yaml file.
3. Enable Collectors based on service availability in the target system (IIS, MSSQL, ADDC, ADCS, MSMQ).
4. Upgrade or Downgrade the windows exporter version.
5. Configurable service Listen address and Port.
6. Configure windows Firewall.
Variable | Description | Default |
---|---|---|
windows_exporter_common_collectors | common collectors to enable | cpu, cs, logical_disk, memory, net, os, process, service, system, tcp, textfile |
windows_exporter_version | WIndows Exporter Version to be installed | 0.19.0 |
windows_exporter_download_url | Windows Exporter MSI URL | https://github.com/prometheus-community/windows_exporter/releases |
windows_exporter_service_name | Windows Exporter Service name | windows_exporter |
windows_exporter_listen_address | Windows Exporter Service listen address | 0.0.0.0 |
windows_exporter_port | Windows Exporter port | 9182 |
windows_exporter_install_path | Windows Exporter install path | C:\Program Files\windows_exporter |
windows_exporter_textfile_collector_directory | Windows Exporter Text file collector directory | C:\Program Files\windows_exporter\textfile_inputs |
windows_exporter_download_path | MSI Download path | C:\Install\exporters |
windows_exporter_log_level | Log Level | debug |
windows_exporter_start_mode | Windows Exporter Service start mode | delayed |
windows_exporter_configure_firewall | Configure firewall for windows exporter | true |
- hosts: servers
roles:
- iquzart.windows_exporter
MIT
Muhammed Iqbal iquzart@hotmail.com