{"id":22845577,"url":"https://github.com/idealista/prometheus_haproxy_exporter_role","last_synced_at":"2026-04-15T06:33:07.488Z","repository":{"id":49966527,"uuid":"371320846","full_name":"idealista/prometheus_haproxy_exporter_role","owner":"idealista","description":"Ansible role to install Prometheus HAProxy metrics exporter","archived":false,"fork":false,"pushed_at":"2021-06-07T16:34:35.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T05:29:02.047Z","etag":null,"topics":["ansible","debian","haproxy","haproxy-configuration","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idealista.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-27T09:38:14.000Z","updated_at":"2021-06-07T16:33:31.000Z","dependencies_parsed_at":"2022-09-03T09:41:22.593Z","dependency_job_id":null,"html_url":"https://github.com/idealista/prometheus_haproxy_exporter_role","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/idealista/prometheus_haproxy_exporter_role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fprometheus_haproxy_exporter_role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fprometheus_haproxy_exporter_role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fprometheus_haproxy_exporter_role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fprometheus_haproxy_exporter_role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idealista","download_url":"https://codeload.github.com/idealista/prometheus_haproxy_exporter_role/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fprometheus_haproxy_exporter_role/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31829990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","debian","haproxy","haproxy-configuration","prometheus","prometheus-exporter"],"created_at":"2024-12-13T03:17:41.487Z","updated_at":"2026-04-15T06:33:07.458Z","avatar_url":"https://github.com/idealista.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus HAProxy Exporter Ansible role\n![Logo](logo.gif)\n\n[![Build Status](https://travis-ci.com/idealista/prometheus_haproxy_exporter_role.png)](https://travis-ci.com/idealista/prometheus_haproxy_exporter_role)\n[![Ansible Galaxy](https://img.shields.io/badge/galaxy-idealista.prometheus_haproxy_exporter_role-B62682.svg)](https://galaxy.ansible.com/idealista/prometheus_haproxy_exporter_role)\n\n\n\nThis ansible role installs [Prometheus HAProxy Exporter](https://github.com/prometheus/haproxy_exporter) in a Debian environment. It has been tested for the following Debian versions:\n* Stretch\n* Buster\n\nThis role has been generated using the [cookiecutter](https://github.com/cookiecutter/cookiecutter) tool, you can generate a similar role that fits your needs using the this [cookiecutter template](https://github.com/idealista/cookiecutter-ansible-role).\n\n- [Getting Started](#getting-started)\n\t- [Prerequisities](#prerequisities)\n\t- [Installing](#installing)\n- [Usage](#usage)\n- [Testing](#testing)\n- [Built With](#built-with)\n- [Versioning](#versioning)\n- [Authors](#authors)\n- [License](#license)\n- [Contributing](#contributing)\n\n## Getting Started\nThese instructions will get you a copy of the role for your Ansible playbook. Once launched, it will install Prometheus HAProxy Exporter in a Debian system.\n\n### Prerequisities\n\nAnsible 4.0.0 version installed.\n\nMolecule 3.3.x version installed.\n\nFor testing purposes, [Molecule](https://molecule.readthedocs.io/) with [Docker](https://www.docker.com/) as driver and [Goss](https://github.com/aelsabbahy/goss) as verifier.\n\n### Installing\n\nCreate or add to your roles dependency file (e.g requirements.yml):\n\n```\n- src: idealista.prometheus_haproxy_exporter_role\n  version: 1.0.1\n  name: prometheus_haproxy_exporter_role\n```\n\nInstall the role with ansible-galaxy command:\n\n```\nansible-galaxy install -p roles -r requirements.yml -f\n```\n\nUse in a playbook:\n\n```\n---\n- hosts: someserver\n  roles:\n    - role: prometheus_haproxy_exporter_role\n```\n\n## Usage\n\nLook to the [defaults](defaults/main.yml) properties file to see the possible configuration properties, it is very likely that you will not need to override any variables.\n\n\n## Testing\n\n### Install dependencies\n\n```sh\n$ pipenv sync\n```\n\nFor more information read the [pipenv docs](https://pipenv-fork.readthedocs.io/en/latest/).\n\n### Testing\n\n```sh\n$ pipenv run molecule test \n```\nNote: if you want to add colorized output (as previous versions of molecule), you must [set these environment variables](https://www.jeffgeerling.com/blog/2020/getting-colorized-output-molecule-and-ansible-on-github-actions-ci):\n```\nANSIBLE_FORCE_COLOR=1\nPY_COLOR=1\n```\n## Built With\n\n![Ansible](https://img.shields.io/badge/ansible-4.0.0-green.svg)\n![Molecule](https://img.shields.io/badge/molecule-3.3.2-green.svg)\n![Goss](https://img.shields.io/badge/goss-0.3.16-green.svg)\n\n## Versioning\n\nFor the versions available, see the [tags on this repository](https://github.com/idealista/prometheus_prometheus_haproxy_exporter_role/tags).\n\nAdditionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.\n\n## Authors\n\n* **Idealista** - *Work with* - [idealista](https://github.com/idealista)\n\nSee also the list of [contributors](https://github.com/idealista/prometheus_prometheus_haproxy_exporter_role/contributors) who participated in this project.\n\n## License\n\n![Apache 2.0 License](https://img.shields.io/hexpm/l/plug.svg)\n\nThis project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fprometheus_haproxy_exporter_role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidealista%2Fprometheus_haproxy_exporter_role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fprometheus_haproxy_exporter_role/lists"}