{"modulePath":"github.com/ci-plugins/telegraf","version":"v0.2.4","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package haproxy\n\n## Constants\n\n```go\nconst (\n\tHF_PXNAME         = 0  // 0. pxname [LFBS]: proxy name\n\tHF_SVNAME         = 1  // 1. svname [LFBS]: service name (FRONTEND for frontend, BACKEND for backend, any name for server/listener)\n\tHF_QCUR           = 2  //2. qcur [..BS]: current queued requests. For the backend this reports the number queued without a server assigned.\n\tHF_QMAX           = 3  //3. qmax [..BS]: max value of qcur\n\tHF_SCUR           = 4  // 4. scur [LFBS]: current sessions\n\tHF_SMAX           = 5  //5. smax [LFBS]: max sessions\n\tHF_SLIM           = 6  //6. slim [LFBS]: configured session limit\n\tHF_STOT           = 7  //7. stot [LFBS]: cumulative number of connections\n\tHF_BIN            = 8  //8. bin [LFBS]: bytes in\n\tHF_BOUT           = 9  //9. bout [LFBS]: bytes out\n\tHF_DREQ           = 10 //10. dreq [LFB.]: requests denied because of security concerns.\n\tHF_DRESP          = 11 //11. dresp [LFBS]: responses denied because of security concerns.\n\tHF_EREQ           = 12 //12. ereq [LF..]: request errors. Some of the possible causes are:\n\tHF_ECON           = 13 //13. econ [..BS]: number of requests that encountered an error trying to\n\tHF_ERESP          = 14 //14. eresp [..BS]: response errors. srv_abrt will be counted here also.  Some other errors are: - write error on the client socket (won't be counted for the server stat) - failure applying filters to the response.\n\tHF_WRETR          = 15 //15. wretr [..BS]: number of times a connection to a server was retried.\n\tHF_WREDIS         = 16 //16. wredis [..BS]: number of times a request was redispatched to another server. The server value counts the number of times that server was switched away from.\n\tHF_STATUS         = 17 //17. status [LFBS]: status (UP/DOWN/NOLB/MAINT/MAINT(via)...)\n\tHF_WEIGHT         = 18 //18. weight [..BS]: total weight (backend), server weight (server)\n\tHF_ACT            = 19 //19. act [..BS]: number of active servers (backend), server is active (server)\n\tHF_BCK            = 20 //20. bck [..BS]: number of backup servers (backend), server is backup (server)\n\tHF_CHKFAIL        = 21 //21. chkfail [...S]: number of failed checks. (Only counts checks failed when the server is up.)\n\tHF_CHKDOWN        = 22 //22. chkdown [..BS]: number of UP-\u003eDOWN transitions. The backend counter counts transitions to the whole backend being down, rather than the sum of the counters for each server.\n\tHF_LASTCHG        = 23 //23. lastchg [..BS]: number of seconds since the last UP\u003c-\u003eDOWN transition\n\tHF_DOWNTIME       = 24 //24. downtime [..BS]: total downtime (in seconds). The value for the backend is the downtime for the whole backend, not the sum of the server downtime.\n\tHF_QLIMIT         = 25 //25. qlimit [...S]: configured maxqueue for the server, or nothing in the value is 0 (default, meaning no limit)\n\tHF_PID            = 26 //26. pid [LFBS]: process id (0 for first instance, 1 for second, ...)\n\tHF_IID            = 27 //27. iid [LFBS]: unique proxy id\n\tHF_SID            = 28 //28. sid [L..S]: server id (unique inside a proxy)\n\tHF_THROTTLE       = 29 //29. throttle [...S]: current throttle percentage for the server, when slowstart is active, or no value if not in slowstart.\n\tHF_LBTOT          = 30 //30. lbtot [..BS]: total number of times a server was selected, either for new sessions, or when re-dispatching. The server counter is the number of times that server was selected.\n\tHF_TRACKED        = 31 //31. tracked [...S]: id of proxy/server if tracking is enabled.\n\tHF_TYPE           = 32 //32. type [LFBS]: (0                                                                                                                                                                                                  = frontend, 1 = backend, 2 = server, 3 = socket/listener)\n\tHF_RATE           = 33 //33. rate [.FBS]: number of sessions per second over last elapsed second\n\tHF_RATE_LIM       = 34 //34. rate_lim [.F..]: configured limit on new sessions per second\n\tHF_RATE_MAX       = 35 //35. rate_max [.FBS]: max number of new sessions per second\n\tHF_CHECK_STATUS   = 36 //36. check_status [...S]: status of last health check, one of:\n\tHF_CHECK_CODE     = 37 //37. check_code [...S]: layer5-7 code, if available\n\tHF_CHECK_DURATION = 38 //38. check_duration [...S]: time in ms took to finish last health check\n\tHF_HRSP_1xx       = 39 //39. hrsp_1xx [.FBS]: http responses with 1xx code\n\tHF_HRSP_2xx       = 40 //40. hrsp_2xx [.FBS]: http responses with 2xx code\n\tHF_HRSP_3xx       = 41 //41. hrsp_3xx [.FBS]: http responses with 3xx code\n\tHF_HRSP_4xx       = 42 //42. hrsp_4xx [.FBS]: http responses with 4xx code\n\tHF_HRSP_5xx       = 43 //43. hrsp_5xx [.FBS]: http responses with 5xx code\n\tHF_HRSP_OTHER     = 44 //44. hrsp_other [.FBS]: http responses with other codes (protocol error)\n\tHF_HANAFAIL       = 45 //45. hanafail [...S]: failed health checks details\n\tHF_REQ_RATE       = 46 //46. req_rate [.F..]: HTTP requests per second over last elapsed second\n\tHF_REQ_RATE_MAX   = 47 //47. req_rate_max [.F..]: max number of HTTP requests per second observed\n\tHF_REQ_TOT        = 48 //48. req_tot [.F..]: total number of HTTP requests received\n\tHF_CLI_ABRT       = 49 //49. cli_abrt [..BS]: number of data transfers aborted by the client\n\tHF_SRV_ABRT       = 50 //50. srv_abrt [..BS]: number of data transfers aborted by the server (inc. in eresp)\n\tHF_COMP_IN        = 51 //51. comp_in [.FB.]: number of HTTP response bytes fed to the compressor\n\tHF_COMP_OUT       = 52 //52. comp_out [.FB.]: number of HTTP response bytes emitted by the compressor\n\tHF_COMP_BYP       = 53 //53. comp_byp [.FB.]: number of bytes that bypassed the HTTP compressor (CPU/BW limit)\n\tHF_COMP_RSP       = 54 //54. comp_rsp [.FB.]: number of HTTP responses that were compressed\n\tHF_LASTSESS       = 55 //55. lastsess [..BS]: number of seconds since last session assigned to server/backend\n\tHF_LAST_CHK       = 56 //56. last_chk [...S]: last health check contents or textual error\n\tHF_LAST_AGT       = 57 //57. last_agt [...S]: last agent check contents or textual error\n\tHF_QTIME          = 58 //58. qtime [..BS]:\n\tHF_CTIME          = 59 //59. ctime [..BS]:\n\tHF_RTIME          = 60 //60. rtime [..BS]: (0 for TCP)\n\tHF_TTIME          = 61 //61. ttime [..BS]: the average total session time in ms over the 1024 last requests\n)\n```\nCSV format: [https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.1](https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.1)\n\n","path":"github.com/ci-plugins/telegraf/plugins/haproxy","name":"haproxy","synopsis":"","isRedistributable":true}
