{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/1019","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/1019/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/1019/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/1019/events","html_url":"https://github.com/influxdata/telegraf/issues/1019","id":148053235,"number":1019,"title":"Standard URI for haproxy Stats","user":{"login":"pasancario","id":811713,"avatar_url":"https://avatars.githubusercontent.com/u/811713?v=3","gravatar_id":"","url":"https://api.github.com/users/pasancario","html_url":"https://github.com/pasancario","followers_url":"https://api.github.com/users/pasancario/followers","following_url":"https://api.github.com/users/pasancario/following{/other_user}","gists_url":"https://api.github.com/users/pasancario/gists{/gist_id}","starred_url":"https://api.github.com/users/pasancario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasancario/subscriptions","organizations_url":"https://api.github.com/users/pasancario/orgs","repos_url":"https://api.github.com/users/pasancario/repos","events_url":"https://api.github.com/users/pasancario/events{/privacy}","received_events_url":"https://api.github.com/users/pasancario/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-13T13:00:26Z","updated_at":"2016-04-13T13:00:26Z","closed_at":null,"body":"Hi, \r\n\r\nI want to use haproxy input plugin, but it seems it doesn't work with standard configuration from Haproxy. \r\n\r\nThey define default URI as: http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4.2-stats%20enable\r\n>  This statement enables statistics reporting with default settings defined at build time. Unless stated otherwise, these settings are used :\r\n>   - stats uri   : /haproxy?stats\r\n>   - stats realm : \"HAProxy Statistics\"\r\n\r\nAnd when plugin tries to parse it, fails: \r\n\r\n`Error in input [haproxy]: Unable to get valid stat result from 'http://127.0.0.1:80/haproxy?stats': %!s(<nil>)`\r\n\r\nIt seems query values are not being parsed, and default URI from haproxy is not supported.\r\n\r\nConfiguration: \r\n```\r\n [[inputs.haproxy]]\r\n      servers = [\"http://127.0.0.1:80/haproxy?stats\"]\r\n\r\n```\r\nOutput: \r\n\r\n> Error in input [haproxy]: Unable to get valid stat result from 'http://127.0.0.1:80/haproxy?stats': %!s(<nil>)\r\n\r\n\r\n\r\n\r\n\r\n"}}