antmelekhin.windows_exporter

Windows Exporter

Windows Exporterをインストール、設定、更新するためのAnsibleロールです。Windows Exporterについての情報を見てください。

2.xへのアップグレード

ロールのバージョン2.0.0からいくつかの変数が変更されました。プレイブック内の変数を更新する必要があります。

  • windows_exporter_listen_addresswindows_exporter_web_listen_address
  • windows_exporter_listen_portwindows_exporter_web_listen_port
  • windows_exporter_metrics_pathwindows_exporter_telemetry_path
  • windows_exporter_timeout_marginwindows_exporter_scrape_timeout_margin
  • windows_exporter_max_requestswindows_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
      • すべて

ロール変数

オーバーライド可能なすべての変数は、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
所有者