{"id":21174608,"url":"https://github.com/leen15/haproxy-stats-visualizer","last_synced_at":"2025-04-13T15:41:49.013Z","repository":{"id":152427791,"uuid":"236558066","full_name":"Leen15/haproxy-stats-visualizer","owner":"Leen15","description":"A php app for visualize the status of multiple HaProxy instances.","archived":false,"fork":false,"pushed_at":"2023-08-03T14:28:54.000Z","size":157,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T06:44:40.612Z","etag":null,"topics":["docker","haproxy","metrics","statistics","visualizer"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leen15.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-01-27T18:09:14.000Z","updated_at":"2025-03-18T13:47:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"658deebb-6f36-44eb-8ed8-27fe282a34e4","html_url":"https://github.com/Leen15/haproxy-stats-visualizer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fhaproxy-stats-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fhaproxy-stats-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fhaproxy-stats-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fhaproxy-stats-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leen15","download_url":"https://codeload.github.com/Leen15/haproxy-stats-visualizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248739959,"owners_count":21154247,"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":["docker","haproxy","metrics","statistics","visualizer"],"created_at":"2024-11-20T16:55:25.109Z","updated_at":"2025-04-13T15:41:48.991Z","avatar_url":"https://github.com/Leen15.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HaProxy Stats Visualizer\nA php app for visualize the status of multiple HaProxy instances.  \nFor every haproxy configured, it will show the current status of backend servers with:  \n- Status  \n- Uptime  \n- LastCheck  \n- Downtime    \n\n![Alt text](demo.png?raw=true \"Demo Image\")\n\n## Prerequisites:\nFor use this app, every haproxy instance has to expose statistics.  \nYou can do it editing haproxy.cfg with:   \n```\nlisten stats\n  bind :9000\n  mode http\n  stats enable\n  stats hide-version\n  stats realm Haproxy\\ Statistics\n  stats uri /lb_stats\n  stats auth user:password\n  stats refresh 5s\n```\n\n## Usage\n\nThis app works inside docker, so to use it simple run it with:   \n\n`docker run -d -p 80:80\n-e HAPROXY_BASE_URL=https://haproxy.domain.com\n-e HAPROXY_PATHS=lb_stats1,lb_stats2\n leen15/haproxy-stats-visualizer `\n\nAnd now if you open the new page it will show a section for every HaProxy Instance.   \n\n\n## Environment Variables  \n\nYou have to set these environment variables:  \n`HAPROXY_BASE_URL`: base url where you have your haproxy stats pages (it also support basic auth with user:pass@yourdomain.com/)  \n`HAPROXY_PATHS`: A list of paths where haproxy stats are exposed (comma separated)   \n`REFRESH_INTERVAL`: For autorefresh (Default value 5 seconds)  \n\nThe app also support envs with a full URLs, like this:   \n`LB_URL_1=B2B_Balancer#https://haproxy1.domain.com/haproxy_stats`\n`LB_URL_2=B2C_Balancer#https://haproxy2.domain.com/haproxy_stats`\n\nThe format is:   \n`LB_URL_{OrderCounter}={Name_Of_Balancer}#{Url.of.haproxy}`   \nFor the name field underscores will be replace with spaces.   \n    \n## License\n\nThis project is released under the terms of the [MIT license](http://en.wikipedia.org/wiki/MIT_License).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleen15%2Fhaproxy-stats-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleen15%2Fhaproxy-stats-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleen15%2Fhaproxy-stats-visualizer/lists"}