abednarik.mysqld-exporter

Ansibleロール: MySQL Exporter

Build Status CircleCI

このAnsibleロールは、RedHat/CentOSまたはDebian/UbuntuにMySQL Exporterをインストールします。

要件

次の特権を持つMySQLユーザー

CREATE USER 'exporter'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT PROCESS, REPLICATION CLIENT,
SELECT ON *.* TO 'exporter'@'localhost' WITH MAX_USER_CONNECTIONS 3;
FLUSH PRIVILEGES;

注意: サーバーが負荷の高い状態で監視スクリプトを処理し過ぎないように、ユーザーの最大接続数を設定することをお勧めします。

ロール変数

必須の変数

mysqld_exporterのユーザー、パスワード、ホスト、およびポート。

prometheus_mysqld_exporter_env: 'user:password@(hostname:port)/'

任意の変数: 一般設定

ユーザーが設定できるデフォルト値:

prometheus_user:   prometheus
prometheus_group:  prometheus

prometheus_mysqld_exporter_version: 0.9.0

gosu_version: '1.10'

prometheus_install_path:  /opt/prometheus
prometheus_log_path:      /var/log/prometheus
prometheus_pid_path:      /var/run/prometheus

依存関係

なし。

例のプレイブック

- hosts: all
  become: True
  roles:
    - abednarik.mysqld-exporter

  vars:
    prometheus_mysqld_exporter_env: 'exporter:password@(localhost:3306)/'

ライセンス

GPLv3

著者情報

このロールは2016年にAlejandro Bednarikによって作成されました。

注意

このロールは、William-Yehの素晴らしい作業に基づいており、ansible/prometheusに関する詳細は以下をご覧ください。 https://github.com/William-Yeh/ansible-prometheus

プロジェクトについて

Install and configure mysqld_exporter

インストール
ansible-galaxy install abednarik.mysqld-exporter
ライセンス
gpl-3.0
ダウンロード
489
所有者
Proactive and responsible DevOps / System Engineer and Technical Lead with over 10 years of experience in IT Systems and Open Source.