newrelic_platform_plugins icon indicating copy to clipboard operation
newrelic_platform_plugins copied to clipboard

haproxy plugin on v1.5dev

Open arnebjarne opened this issue 11 years ago • 2 comments

Hi.

I can't get the haproxy plugin to run on the following setup:

CentOS 6.4 x86_64 haproxy v 1.5-dev17 Agent Haproxy v 1.0.1

It connect fine to haproxy and Newrelic website but not data goes to the site other than: Servers Active (works) Proxy status (works) No data from Requests/Errors/Traffic or Sessions gets to the site

Can someone confirm that haproxy 1.5-dev train and haproxy agent 1.0.1 work together?

arnebjarne avatar Jul 15 '13 14:07 arnebjarne

Can you show your haproxy stats csv and plugin config?

maxtor avatar Jul 17 '13 04:07 maxtor

Hi Maxtor:

output of the cvs file (grabbed with curl) - names have been changed for security:

pxname,svname,qcur,qmax,scur,smax,slim,stot,bin,bout,dreq,dresp,ereq,econ,eresp,wretr,wredis,status,weight,act,bck,chkfail,chkdown,lastchg,downtime,qlimit,pid,iid,sid,tk_code,check_duration,hrsp_1xx,hrsp_2xx,hrsp_3xx,hrsp_4xx,hrsp_5xx,hrsp_other,hanafail,req_rate,req_rate_max,req_tot,cli_abrt,srv_abrt,comp_in,comp_out,comp_byp,comp_rsp,

haproxy-stats,FRONTEND,,,1,1,2000,641,104320,13822944,0,0,0,,,,,OPEN,,,,,,,,,1,2,0,,,,0,1,0,2,,,,0,640,0,0,0,0,,1,2,641,,,0,0,0,0, haproxy-stats,BACKEND,0,0,0,0,200,0,104320,13822944,0,0,,0,0,0,0,UP,0,0,0,,0,94025,0,,1,2,0,,0,,1,0,,0,,,,0,0,0,0,0,0,,,,,0,0,0,0,0,0, somelbservice,FRONTEND,,,0,0,2000,0,0,0,0,0,0,,,,,OPEN,,,,,,,,,1,3,0,,,,0,0,0,0,,,,0,0,0,0,0,0,,0,0,0,,,0,0,0,0, somelbservice,somerealserver-001,0,0,0,0,,0,0,0,,0,,0,0,0,0,UP,1,1,0,19,7,221,534,,1,8,1,,0,,2,0,,0,L7OK,200,0,0,0,0,0,0,0,0,,,,0,0,,,,, somelbservice,somerealserver-002,0,0,0,0,,0,0,0,,0,,0,0,0,0,UP,1,1,0,8,4,7940,101,,1,8,2,,0,,2,0,,0,L7OK,200,1,0,0,0,0,0,0,0,,,,0,0,,,,, somelbservice,BACKEND,0,0,0,0,200,0,0,0,0,0,,0,0,0,0,UP,2,2,0,,0,94025,0,,1,8,0,,0,,1,0,,0,,,,0,0,0,0,0,0,,,,,0,0,0,0,0,0,

content of the newrelic config file: /etc/newrelic/newrelic_haproxy_agent.yml

newrelic: license_key: 'a_valid_license_key' verbose: 1 agents: myhaproxy_instance_haproxy-stats: uri: http://myhaproxyhost:8080/haproxy?stats;csv proxy: haproxy-stats proxy_type: FRONTEND user: admin password: youwish myhaproxy_instance_somelbservice: uri: http://myhaproxy:8080/haproxy?stats;csv proxy: somelbservice proxy_type: BACKEND user: admin password: youwish

It looks like the newrelic agent only gathers data from the haproxy-stat. Maybe I'm missing something in my haproxy config? Should I create a stats config for each proxy service?

BR, Bjarne

arnebjarne avatar Jul 23 '13 12:07 arnebjarne