{"id":19847750,"url":"https://github.com/eradical/ansible-php-fpm-exporter","last_synced_at":"2026-05-09T02:11:39.098Z","repository":{"id":87820352,"uuid":"143701479","full_name":"eRadical/ansible-php-fpm-exporter","owner":"eRadical","description":"Ansible role that installs php-fpm exporter","archived":false,"fork":false,"pushed_at":"2022-08-24T14:06:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T12:46:02.755Z","etag":null,"topics":["ansible","ansible-role","php","php-fpm","php-fpm-exporter","prometheus","prometheus-exporter","prometheus-php-fpm-exporter"],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eRadical.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-06T08:50:10.000Z","updated_at":"2022-08-24T14:06:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"64d3468a-d452-4e13-938d-1c7b52bcd66b","html_url":"https://github.com/eRadical/ansible-php-fpm-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eRadical%2Fansible-php-fpm-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eRadical%2Fansible-php-fpm-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eRadical%2Fansible-php-fpm-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eRadical%2Fansible-php-fpm-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eRadical","download_url":"https://codeload.github.com/eRadical/ansible-php-fpm-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241226802,"owners_count":19930487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","php","php-fpm","php-fpm-exporter","prometheus","prometheus-exporter","prometheus-php-fpm-exporter"],"created_at":"2024-11-12T13:15:03.202Z","updated_at":"2025-11-05T04:02:12.008Z","avatar_url":"https://github.com/eRadical.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"php-fpm-exporter\n=========\n\nPHP-FPM exporter for Prometheus from https://github.com/bakins/php-fpm-exporter\n\n\nRole Variables\n--------------\n\n- php_fpm_exporter_version - exporter version to be downloaded from the above repo\n\n- php_fpm_exporter_system_group - save \u0026 run the executable under this group, defaults to `php_fpm_exporter`\n- php_fpm_exporter_system_user - save \u0026 run the executable under this group\n\n- php_fpm_exporter_export_ip - the IP address which will be exposed by the exporter, defaults to `ansible_eth0.ipv4.address`\n\n- php_fpm_pools - You can define more than one exporter for each PHP-FPM pool or (as my case is) for each docker container running php-fpm, the playbook will generate a systemd service for each pool\n\nFor each pool you have a dict containing:\n- name - must be present, the name of the pool, it will be used in the systemd service name\n- export_port - must be present, this is the port that the exporter binds to, you'll need this to scrape from Prometheus\n\nAnd last one of:\n- fastcgi_endpoint - this will connect directly to the php-fpm process and get the stats\n- http_endpoint - this will pool through the local webserver, note that you must configure the webserver yourself to expose this\n\nYou can then use `php_fpm_pools` in your Prometheus server to tell it what to scrape.\n\nExample Playbook\n----------------\n\nAdd it to your playbook\n\n- hosts: servers\n  roles:\n    - role: eRadical.php-fpm-exporter\n\nExample of pools:\n\nphp_fpm_pools:\n  - name: www\n    export_port: 8080\n    fastcgi_endpoint: tcp://127.0.0.1:9000/status\n  - name: another_pool\n    export_port: 8081\n    http_endpoint: http://127.0.0.1:9000/status\n\n\nLicense\n-------\n\n- GPLv3\n- based mostly on https://github.com/cloudalchemy/ansible-node-exporter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feradical%2Fansible-php-fpm-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feradical%2Fansible-php-fpm-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feradical%2Fansible-php-fpm-exporter/lists"}