prometheus.prometheus.mysqld_exporter role – Prometheus MySQLd Exporter

Note

This role is part of the prometheus.prometheus collection (version 0.5.1).

To install it use: ansible-galaxy collection install prometheus.prometheus.

To use it in a playbook, specify: prometheus.prometheus.mysqld_exporter.

Entry point main – Prometheus MySQLd Exporter

Synopsis

Parameters

Parameter

Comments

mysqld_exporter_basic_auth_users

dictionary

Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt.

mysqld_exporter_binary_install_dir

string

Advanced

Directory to install mysqld_exporter binary

Default: "/usr/local/bin"

mysqld_exporter_binary_local_dir

string

Enables the use of local packages instead of those distributed on github.

The parameter may be set to a directory where the mysqld_exporter binary is stored on the host where ansible is run.

This overrides the mysqld_exporter_version parameter

mysqld_exporter_binary_url

string

URL of the mysqld_exporter binaries .tar.gz file

Default: "https://github.com/prometheus/{{ _mysqld_exporter_repo }}/download/v{{ mysqld_exporter_version }}/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}.tar.gz"

mysqld_exporter_checksums_url

string

URL of the mysqld_exporter checksums file

Default: "https://github.com/{{ _mysqld_exporter_repo }}/releases/download/v{{ mysqld_exporter_version }}/sha256sums.txt"

mysqld_exporter_config_file

string

The filename of the exporter mysql config file

Default: "mysqld_exporter.cnf"

mysqld_exporter_disabled_collectors

list / elements=string

List of disabled collectors.

By default mysqld_exporter disables collectors listed here.

mysqld_exporter_enabled_collectors

list / elements=string

List of dicts defining additionally enabled collectors and their configuration.

It adds collectors to those enabled by default.

Default: []

mysqld_exporter_host

string

The target MySQL host

mysqld_exporter_http_server_config

dictionary

Config for HTTP/2 support.

Keys and values are the same as in mysqld_exporter docs.

mysqld_exporter_port

string

The target MySQL port

mysqld_exporter_skip_install

boolean

MySQLd installation tasks gets skipped when set to true.

Choices:

  • false ← (default)

  • true

mysqld_exporter_socket

string

The target MySQL unix socket

Default: "/run/mysqld/mysqld.sock"

mysqld_exporter_system_group

string

Advanced

System group for MySQLd Exporter

Default: "mysqld-exp"

mysqld_exporter_system_user

string

Advanced

MySQLd Exporter user

Default: "mysqld-exp"

mysqld_exporter_tls_server_config

dictionary

Configuration for TLS authentication.

Keys and values are the same as in mysqld_exporter docs.

mysqld_exporter_version

string

MySQLd exporter package version. Also accepts latest as parameter.

Default: "1.1.2"

mysqld_exporter_web_listen_address

string

Address on which mysqld_exporter will listen

Default: "0.0.0.0:9104"

mysqld_exporter_web_telemetry_path

string

Path under which to expose metrics

Default: "/metrics"

Authors

  • Prometheus Community