mbaran0v.ansible_role_prometheus_nginxlog_exporter
Ansibleロール: prometheus-nginxlog-exporter
これは、Prometheus Nginxログエクスポーターをインストールし、設定するためのAnsibleロールです。現在、DebianおよびRedHatベースのLinuxシステムで動作します。テスト済みプラットフォームは次のとおりです:
- Ubuntu 16.04
- CentOS 7
要件
特別な要件はありません。このロールはrootアクセスを必要とするため、グローバルにbecome: yes
を設定したプレイブックで実行してください。
ロール変数
このロールに渡すことができる変数と、その簡単な説明は次のとおりです。(すべての変数については、defaults/main.ymlを参照してください。)
nginxlog_exporter_version: 1.3.0
インストールするバージョン
nginxlog_exporter_listen_port: 4040
リスンポート
nginxlog_exporter_root_dir: /opt/nginxlog_exporter
インストール先ディレクトリ
nginxlog_exporter_config_vars: |
listen:
port: {{ nginxlog_exporter_listen_port }}
address: {{ nginxlog_exporter_listen_address }}
namespaces:
- name: nginx
format: "$remote_addr [$time_local] \"$request\" $status $body_bytes_sent $request_time $upstream_response_time"
source_files:
- "/var/log/nginx/exporter.log"
histogram_buckets: [.1, .3, .5, .7, 1, 3, 5, 7]
設定ファイル https://github.com/martin-helmich/prometheus-nginxlog-exporter#configuration-file
依存関係
なし
例のプレイブック
- hosts: app
become: yes
roles:
- mbaran0v.prometheus-nginxlog-exporter
ライセンス
MIT / BSD
著者情報
このロールは2019年にMaxim Baranovによって作成されました。
プロジェクトについて
Prometheus Nginx access log Exporter https://github.com/martin-helmich/prometheus-nginxlog-exporter
インストール
ansible-galaxy install mbaran0v.ansible_role_prometheus_nginxlog_exporter
ライセンス
Unknown
ダウンロード
1.1M
所有者
Experienced DevOps Engineer