cloudera.exe.prometheus role – Install Prometheus.

Note

This role is part of the cloudera.exe collection (version 3.0.0).

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 cloudera.exe..

To use it in a playbook, specify: cloudera.exe.prometheus.

Entry point main – Install Prometheus.

New in cloudera.exe 2.4.0

Synopsis

  • Install Prometheus from the distribution archive file.

  • Set up SELinux to permissive mode (to ensure Prometheus can run without policy restrictions).

  • Set up the local time-series database.

  • Set up the service user and group.

  • Install a basic configuration.

Parameters

Parameter

Comments

prometheus_directory

path

Prometheus configuration directory.

Default: "/etc/prometheus"

prometheus_group

string

Prometheus service group.

Default: "prometheus"

prometheus_scrape_targets

list / elements=string

List of hosts to scrape with node_exporter

Default: ["localhost"]

prometheus_service_directory

path

Prometheus Systemd service directory.

Default: "/etc/systemd/system/prometheus.service"

prometheus_tarball_file

string

Intermediate archive file name.

Default: "prometheus.tar.gz"

prometheus_tarball_url

string

URL to the Prometheus distribution archive file.

Default: "https://github.com/prometheus/prometheus/releases/download/v2.48.1/prometheus-2.48.1.linux-amd64.tar.gz"

prometheus_tsdb_directory

path

Prometheus TSDB directory.

Default: "/var/lib/prometheus"

prometheus_user

string

Prometheus service user.

Default: "prometheus"

Authors

  • Cloudera Labs