onkeldom.pushgateway

Ansible Role: Pushgateway

ubuntu-18 ubuntu-20 debian-9 debian-10

License GitHub issues GitHub tag GitHub action

Description

This Ansible role installs the Prometheus Pushgateway.

Requirements

  • You need Ansible version 2.9 or higher (it may work on older versions but we can't promise that).

Role Variables

You can change the default variables stored in defaults/main.yml or the table below.

Name Default Value Description
proxy_env {} Proxy environment variables
pushgateway_version 1.4.1 Version of Pushgateway
pushgateway_web_listen_address 0.0.0.0 Address for Pushgateway to listen on
pushgateway_web_listen_port 9091 Port for Pushgateway to listen on
pushgateway_web_external_url "http://{{ ansible_domain }}.{{ ansible_hostname }}:{{ pushgateway_web_listen_port }}" External URL for Pushgateway
pushgateway_persistence true Enable data persistence
pushgateway_create_consul_agent_service "true" Add config for Consul agent
pushgateway_config_flags_extra {} Extra Flags for Pushgateway
pushgateway_limit_nofile 8192 File descriptor limit
pushgateway_system_user prometheus User for Pushgateway service
pushgateway_system_group prometheus Group for Pushgateway service
pushgateway_log_level warn Log level for Pushgateway
pushgateway_log_format json Log format for Pushgateway
pushgateway_binary_local_dir /usr/local/bin Default directory for binaries
pushgateway_persistence_dir /var/lib/pushgateway Directory for persistent data
pushgateway_http_proxy null Application proxy settings
pushgateway_config_flags_extra {} Additional startup parameters

Example

Playbook

You can use it in your Ansible playbook like this:

- hosts: all
  roles:
    - onkeldom.pushgateway

Contributing

For contributions, please see the contributor guideline.

License

This project is licensed under the MIT License. See LICENSE for more details.

Informazioni sul progetto

Ansible role for installing and configuring Prometheus Pushgateway

Installa
ansible-galaxy install onkeldom.pushgateway
Licenza
mit
Download
104
Proprietario