tschoonj.ansible_role_guacamole_exporter

Ansibleロール guacamole_exporter

Molecule Test Ansible Role GitHub tag

ansible-guacamole-exporter

このロールは、guacamole_exporterをインストールおよび設定し、Guacamoleクライアントレスリモートデスクトップゲートウェイから使用状況のメトリクスを収集します。このメトリクスは、Prometheusインスタンスによって取得できます。

要件

  • Ansible >= 2.10(それ以前のバージョンでも動作する可能性がありますが、テストはしていません)

ロール変数

ユーザーは次の変数を定義する必要があります。

名前 説明
guacamole_exporter_endpoint Guacamoleインスタンスのアドレス
guacamole_exporter_username REST APIにアクセスするのに十分な権限を持つユーザー
guacamole_exporter_password 対応するパスワード
guacamole_exporter_datasource REST API呼び出しで使用するデータソース。このデータソースは認証データソースとは異なる場合があり、通常はSQL実装となります

default/main.ymlのすべての変数はオーバーライドできます。

名前 デフォルト値 説明
guacamole_exporter_version 0.1.1 インストールするバージョン、「latest」も受け入れられます
guacamole_exporter_binary_local_dir "" GitHubパッケージの代わりにローカルパッケージを使うため
guacamole_exporter_web_listen_address "0.0.0.0:9623" guacamole_exporterのリッスンアドレス
guacamole_exporter_web_telemetry_path "/metrics" メトリクスをエクスポートするために使用されるパス

依存関係

なし

使用方法

galaxyから

ansible-galaxy install tschoonj.ansible_role_guacamole_exporter

gitサブモジュール

galaxyからプルする代わりにプロジェクトにサブモジュールとして追加する場合

git submodule add -b main https://github.com/tschoonj/ansible-role-guacamole-exporter.git roles/guacamole-exporter

ロールの更新を取得するには

git submodule update --remote

使用例プレイブック

- hosts: all
  roles:
    - role: tschoonj.ansible_role_guacamole_exporter
      vars:
        guacamole_endpoint: guacamole.example.com
        guacamole_username: admin
        guacamole_password: admin
        guacamole_datasource: mysql

貢献

  • GitHubでプロジェクトをフォークする
  • プロジェクトをクローンする
  • 変更(およびテスト)を追加する
  • コミットしてプッシュする
  • プルリクエストを作成する

謝辞

このロールは、ansible-node-exporteransible-prometheus-msteamsからインスパイアを受けています。

ライセンス

MIT

プロジェクトについて

Role for installing guacamole_exporter, which provides Guacamole usage metrics for Prometheus

インストール
ansible-galaxy install tschoonj.ansible_role_guacamole_exporter
ライセンス
mit
ダウンロード
4.5k
所有者
I'm a software engineer working @genomicsplc, and am passionate about developing quality open source software.