prometheus.prometheus.jmx_exporter role – Prometheus jmx_exporter

Note

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

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

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

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

Entry point main – Prometheus jmx_exporter

Synopsis

Parameters

Parameter

Comments

jmx_exporter_basic_auth_users

dictionary

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

jmx_exporter_binary_install_dir

string

Advanced

Directory to install jmx_exporter binary

Default: "/usr/local/bin"

jmx_exporter_binary_url

string

URL of the jmx_exporter binaries .jar file

Default: "https://github.com/{{ _jmx_exporter_repo }}/releases/download/v{{ jmx_exporter_version }}/jmx_prometheus_javaagent-{{ jmx_exporter_version }}.jar"

jmx_exporter_checksums_url

string

URL of the jmx_exporter checksums file

Default: "https://github.com/{{ _jmx_exporter_repo }}/releases/download/v{{ jmx_exporter_version }}/jmx_prometheus_javaagent-{{ jmx_exporter_version }}.jar.sha256"

jmx_exporter_config_dir

string

Advanced

Directory to store jmx_exporter configuration

Default: "/etc/jmx_exporter"

jmx_exporter_config_file

string

Advanced

Path to the JMX Exporter configuration file

Default: "/etc/jmx_exporter/jmx_exporter.yml"

jmx_exporter_http_server_config

dictionary

Config for HTTP/2 support.

Keys and values are the same as in jmx_exporter docs.

jmx_exporter_local_cache_path

string

Advanced

Local path to stash the archive and its extraction

Default: "/tmp/jmx_exporter/{{ jmx_exporter_version }}"

jmx_exporter_system_group

string

Advanced

System group for jmx_exporter

Default: "jmx-exp"

jmx_exporter_system_user

string

Advanced

System user for jmx_exporter

Default: "jmx-exp"

jmx_exporter_tls_server_config

dictionary

Configuration for TLS authentication.

Keys and values are the same as in jmx_exporter docs.

jmx_exporter_version

string

jmx_exporter package version. Also accepts latest as parameter.

Default: "1.6.0"

jmx_exporter_web_listen_address

string

Address on which jmx exporter will listen

Default: "0.0.0.0:9404"

Authors

  • Prometheus Community