ansible-collection-prometheus/roles/process_exporter/README.md
gardar 4c2902f209
feat: add process_exporter role
Signed-off-by: gardar <gardar@users.noreply.github.com>
2024-03-08 20:41:24 +00:00

2.2 KiB

Ansible Role: process_exporter

Build Status License Ansible Role GitHub tag

Description

Deploy process-exporter using ansible.

Note. This repository and role uses the name process_exporter to conform with ansible galaxy constraints.

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
process_exporter_version 0.7.5 Process exporter package version. Also accepts latest as parameter
process_exporter_web_listen_address "0.0.0.0:9256" Address on which process_exporter will listen
process_exporter_config_dir "/etc/process_exporter" Path to directory with process_exporter configuration
process_exporter_names handling has been set up in an unusual way to handle recommended process-exporter 'Template variables' (such as {{.Comm}}). Follow the example in defaults/main.yml if you want to define custom filtering/grouping of processes that use Template variables and make sure to keep the {% raw %} block delimiters.

Example

Playbook

Use it in a playbook as follows:

- hosts: all
  roles:
    - prometheus.prometheus.process_exporter

Contributing

See contributor guideline.

Troubleshooting

See troubleshooting.

License

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