mbaran0v.ansible_role_prometheus_php_fpm_exporter
Ansible role: prometheus-php-fpm-exporter
Ansible role for install and configure Prometheus PHP-FPM Exporter. Currently this works on Debian and RedHat based linux systems. Tested platforms are:
- Ubuntu 16.04
- CentOS 7
Requirements
No special requirements; note that this role requires root access, so either run it in a playbook with a global become: yes
Role Variables
The variables that can be passed to this role and a brief description about them are as follows. (For all variables, take a look at defaults/main.yml)
phpfpm_exporter_version: 0.6.1
version for installation
phpfpm_exporter_listen_address: 0.0.0.0
phpfpm_exporter_listen_port: 8080
listen address and port
phpfpm_exporter_root_dir: /opt/phpfpm_exporter
directory for installation
phpfpm_exporter_http_endpoint: http://127.0.0.1:9000/status
phpfpm_exporter_fastcgi_endpoint: unix:///path/to/php.sock
HTTP/FastCGI endpoint. You should define one of this variables. Example for nginx: https://easyengine.io/tutorials/php/fpm-status-page/
Dependencies
None
Example Playbook
- hosts: app
become: yes
roles:
- mbaran0v.prometheus-php-fpm-exporter
License
MIT / BSD
Author Information
This role was created in 2019 by Maxim Baranov.
About
Prometheus PHP-FPM Exporter https://github.com/bakins/php-fpm-exporter
Install
ansible-galaxy install mbaran0v.ansible_role_prometheus_php_fpm_exporterLicense
Unknown
Downloads
144
Owner
Experienced DevOps Engineer
