{"id":23138244,"url":"https://github.com/softlayer/haproxy-statsd","last_synced_at":"2025-08-17T11:32:53.155Z","repository":{"id":12478621,"uuid":"15147196","full_name":"softlayer/haproxy-statsd","owner":"softlayer","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-08T20:54:22.000Z","size":157,"stargazers_count":35,"open_issues_count":0,"forks_count":16,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-05-09T17:09:55.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softlayer.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}},"created_at":"2013-12-12T20:55:06.000Z","updated_at":"2023-02-16T21:16:18.000Z","dependencies_parsed_at":"2022-09-23T07:23:00.596Z","dependency_job_id":null,"html_url":"https://github.com/softlayer/haproxy-statsd","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/softlayer%2Fhaproxy-statsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softlayer%2Fhaproxy-statsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softlayer%2Fhaproxy-statsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softlayer%2Fhaproxy-statsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softlayer","download_url":"https://codeload.github.com/softlayer/haproxy-statsd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230121666,"owners_count":18176477,"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":[],"created_at":"2024-12-17T13:10:17.791Z","updated_at":"2024-12-17T13:10:18.163Z","avatar_url":"https://github.com/softlayer.png","language":"Python","readme":"haproxy-statsd\r\n--------------\r\nThis script reports stats to statsd using [haproxy's](http://haproxy.1wt.eu/) stats interface. [See Stats Interface Demo](http://demo.1wt.eu/) ([CSV](http://demo.1wt.eu/;csv)).\r\n\r\nSupported with Python 2.6 and Python 2.7.\r\n\r\nUsage\r\n-----\r\n```\r\nusage: report_haproxy.py [-h] [-c CONFIG] [-1]\r\n\r\nReport haproxy stats to statsd\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -c CONFIG, --config CONFIG\r\n                        Config file location\r\n  -1, --once        Run once and exit\r\n```\r\nConfiguration via environment\r\n-------------------------------\r\n```\r\nSTATSD_HOST=127.0.0.1 \\\r\nSTATSD_PORT=8125 \\\r\nSTATSD_NAMESPACE=haproxy \\\r\nHAPROXY_HOST=127.0.0.1 \\\r\nHAPROXY_USER=stats \\\r\nHAPROXY_PASS=stats \\\r\nreport_haproxy.py\r\n```\r\n\r\nConfig file\r\n-----------\r\nDefault location is ./haproxy-statsd.conf.\r\n\r\n```\r\n[haproxy-statsd]\r\nhaproxy_url = http://127.0.0.1:1936/;csv\r\nhaproxy_user =\r\nhaproxy_password =\r\nstatsd_host = 127.0.0.1\r\nstatsd_port = 8125\r\nstatsd_namespace = haproxy.(HOSTNAME)\r\ninterval = 5\r\n```\r\n\r\nStatsd Paths\r\n------------\r\nAll metrics are reported with paths matching this format:\r\n\r\n    stats.gauges.[namespace].[pxname].[svname].[statname]\r\n\r\nThe following stats are monitored: scur, smax, ereq, econ, rate, bin, bout, hrsp_1xx, hrsp_2xx, hrsp_3xx, hrsp_4xx, hrsp_5xx, qtime, ctime, rtime, ttime.\r\n\r\nFor more information about those metrics please refer to: [HAProxy' stats](http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.1) documentation.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftlayer%2Fhaproxy-statsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftlayer%2Fhaproxy-statsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftlayer%2Fhaproxy-statsd/lists"}