pushgateway

Ansible Role: Pushgateway

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

License GitHub issues GitHub tag GitHub action

Description

Deploy prometheus Pushgateway using ansible.

Requirements

  • Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)

Role Variables

All variables which can be overridden are stored in defaults/main.yml file as well as in table below.

Name Default Value Description
proxy_env {} Proxy environment variables
pushgateway_version 1.4.1 Node exporter package version
pushgateway_web_listen_address 0.0.0.0 default listen address
pushgateway_web_listen_port 9091 default listen port
pushgateway_web_external_url "http://{{ ansible_domain }}.{{ ansible_hostname }}:{{ pushgateway_web_listen_port }}" External address on which pushgateway is available. Useful when behind reverse proxy. Ex. http://example.org/pushgateway
pushgateway_persistence true Enable persistence file
pushgateway_create_consul_agent_service "true" Add consul agent config snipped
pushgateway_config_flags_extra {} Additional configuration flags passed at startup to pushgateway binary
pushgateway_limit_nofile 8192 nofile limit in systemd unit
pushgateway_system_user prometheus default system user
pushgateway_system_group prometheus default system group
pushgateway_log_level warn default log level
pushgateway_log_format json default log format
pushgateway_binary_local_dir /usr/local/bin defaulr bin dir
pushgateway_persistence_dir /var/lib/pushgateway default data dir
pushgateway_http_proxy null define appliation proxy
pushgateway_config_flags_extra {} additional startup params

Example

Playbook

Use it in a playbook as follows:

- hosts: all
  roles:
    - onkeldom.pushgateway

Contributing

See contributor guideline.

License

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

About

Ansible role for installing and configuring Prometheus Pushgateway

Install
ansible-galaxy install OnkelDom/ansible-role-pushgateway
GitHub repository
License
mit
Downloads
94