antmelekhin.windows_exporter
Windows Exporter
Windows Exporterをインストール、設定、更新するためのAnsibleロールです。Windows Exporterについての情報を見てください。
2.xへのアップグレード
ロールのバージョン2.0.0からいくつかの変数が変更されました。プレイブック内の変数を更新する必要があります。
windows_exporter_listen_address
をwindows_exporter_web_listen_address
にwindows_exporter_listen_port
をwindows_exporter_web_listen_port
にwindows_exporter_metrics_path
をwindows_exporter_telemetry_path
にwindows_exporter_timeout_margin
をwindows_exporter_scrape_timeout_margin
にwindows_exporter_max_requests
をwindows_exporter_telemetry_max_requests
に
3.xへのアップグレード
バージョン3.0.0では、windows_exporter_collector
変数がwindows_exporter_collectors
に名前変更されました。
必要条件
- サポートされているAnsibleのバージョン: 2.12以上
pywinrm
は、Windowsホストに対してAnsibleを接続するためのPythonライブラリです。WinRMを使います。- 基本認証機能を使用する場合、デプロイホストに
passlib
が必要です(python3 -m pip install passlib[bcrypt]
)。 - TLS機能を使用する場合、デプロイホストに
cryptography
またはpyOpenSSL
が必要です。 - サポートされているプラットフォーム:
- Windows
- すべて
- Windows
ロール変数
オーバーライド可能なすべての変数は、defaults/main.ymlファイルに格納されています。 利用可能な変数の説明については、meta/argument_specs.ymlファイルを参照してください。 また、プリセット変数の説明とデフォルト値は、vars/main.ymlファイルにあります。
依存関係
なし。
例 プレイブック
Windows Exporter
をインストール、設定し、サービスコレクターのカスタムクエリを指定します。
---
- name: 'Windows Exporterのセットアップ'
hosts: windows_exporter
roles:
- role: antmelekhin.windows_exporter
windows_exporter_collectors_enabled: '[defaults],memory'
windows_exporter_collectors:
- name: service
flags:
services-where: Name='windows_exporter'
ライセンス
MIT
著者情報
メレキン・アントン
プロジェクトについて
An Ansible role to install, configure and update the Windows Exporter.
インストール
ansible-galaxy install antmelekhin.windows_exporter
ライセンス
mit
ダウンロード
2k
所有者