mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 11:53:12 +00:00
4c2902f209
Signed-off-by: gardar <gardar@users.noreply.github.com>
2.2 KiB
2.2 KiB
Ansible Role: process_exporter
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
Troubleshooting
See troubleshooting.
License
This project is licensed under MIT License. See LICENSE for more details.