onkeldom.pushgateway

Ansible Role: Pushgateway

ubuntu-18 ubuntu-20 debian-9 debian-10

License GitHub issues GitHub tag GitHub action

説明

Ansibleを使ってPrometheusのPushgatewayをデプロイします。

要件

  • Ansible >= 2.9(以前のバージョンで動作する可能性もありますが、保証はできません)

ロール変数

上書き可能なすべての変数は、defaults/main.ymlファイルおよび以下の表に保存されています。

名前 デフォルト値 説明
proxy_env {} プロキシ環境変数
pushgateway_version 1.4.1 Node exporterパッケージのバージョン
pushgateway_web_listen_address 0.0.0.0 デフォルトリッスンアドレス
pushgateway_web_listen_port 9091 デフォルトリッスンポート
pushgateway_web_external_url "http://{{ ansible_domain }}.{{ ansible_hostname }}:{{ pushgateway_web_listen_port }}" Pushgatewayが利用可能な外部アドレス。リバースプロキシの背後にいるときに便利。例: http://example.org/pushgateway
pushgateway_persistence true 永続ファイルを有効にする
pushgateway_create_consul_agent_service "true" Consulエージェントの設定を追加
pushgateway_config_flags_extra {} Pushgatewayバイナリに渡される追加の設定フラグ
pushgateway_limit_nofile 8192 systemdユニット内のnofile制限
pushgateway_system_user prometheus デフォルトのシステムユーザー
pushgateway_system_group prometheus デフォルトのシステムグループ
pushgateway_log_level warn デフォルトのログレベル
pushgateway_log_format json デフォルトのログフォーマット
pushgateway_binary_local_dir /usr/local/bin デフォルトのバイナリディレクトリ
pushgateway_persistence_dir /var/lib/pushgateway デフォルトのデータディレクトリ
pushgateway_http_proxy null アプリケーションのプロキシを定義
pushgateway_config_flags_extra {} 追加のスタートアップパラメータ

プレイブック

以下のようにプレイブックで使用します:

- hosts: all
  roles:
    - onkeldom.pushgateway

貢献

貢献ガイドラインを参照してください。

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。詳細についてはLICENSEを参照してください。

プロジェクトについて

Ansible role for installing and configuring Prometheus Pushgateway

インストール
ansible-galaxy install onkeldom.pushgateway
ライセンス
mit
ダウンロード
104
所有者