I still have problem exporting FB 6.3.0 even with the latest BE 0.1.1.
First, FB 6.3.0 http had been enabled. I could see stats at 0.0.0.0:5066.
# curl http://localhost:5066/stats
{"beat":{"cpu":{"system":{"ticks":4180,"time":{"ms":4181}},"total":{"ticks":11370,"time":{"ms":11377},"value":11370},"user":{"ticks":7190,"time":{"ms":7196}}},"info":{"ephemeral_id":"4b46befe-9f6d-4c90-821a-aee743445b97","uptime":{"ms":2270145}},"memstats":{"gc_next":4743984,"memory_alloc":2974376,"memory_total":743705048,"rss":47874048}},"filebeat":{"events":{"active":10,"added":25606,"done":25596},"harvester":{"closed":5,"open_files":5,"running":5,"skipped":0,"started":10},"input":{"log":{"files":{"renamed":0,"truncated":0}}}},"libbeat":{"config":{"module":{"running":0,"starts":0,"stops":0},"reloads":0},"output":{"events":{"acked":25563,"active":0,"batches":2262,"dropped":0,"duplicates":0,"failed":0,"total":25563},"read":{"bytes":7296398,"errors":0},"type":"elasticsearch","write":{"bytes":17887252,"errors":0}},"pipeline":{"clients":1,"events":{"active":10,"dropped":0,"failed":0,"filtered":33,"published":25573,"retry":32,"total":25606},"queue":{"acked":25563}}},"registrar":{"states":{"cleanup":3,"current":14,"update":25596},"writes":2278},"system":{"cpu":{"cores":32},"load":{"1":0.16,"15":0.11,"5":0.11,"norm":{"1":0.005,"15":0.0034,"5":0.0034}}}}
However, BE 0.1.1 couldn't export any metric about FB 6.3.0 except "filebeat_up 0".
# curl 0.0.0.0:9479/metrics
# HELP beat_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which beat_exporter was built.
# TYPE beat_exporter_build_info gauge
beat_exporter_build_info{branch="master",goversion="go1.10.3",revision="67af338c0fed4d18831566b9301e812277efbe60",version="0.1.1"} 1
# HELP filebeat_up Target up
# TYPE filebeat_up gauge
filebeat_up 0
Here is my BE 0.1.1 cmdline and output showing the exact error.
# /opt/beat_exporter/beat-exporter-0.1.1.linux-amd64/beat-exporter -beat.timeout 10s
{"level":"info","message":"Exploring target for beat type","time":"2018-09-22T00:20:52Z"}
{"beat":"filebeat","hostname":"myhost","level":"info","message":"Target beat configuration loaded successfully!","name":"myhost","time":"2018-09-22T00:20:52Z","uuid":"3d7ab23d-a338-4e6e-b0ba-d739af6cf201","version":"6.3.0"}
{"addr":":9479","level":"info","message":"Starting exporter with configured type: filebeat","time":"2018-09-22T00:20:52Z"}
{"level":"error","message":"Could not parse JSON response for target","time":"2018-09-22T00:21:22Z"}
{"level":"error","message":"Failed getting /stats endpoint of target: json: cannot unmarshal number into Go struct field Registrar.writes of type struct { Fail float64 \"json:\\\"fail\\\"\"; Success float64 \"json:\\\"success\\\"\"; Total float64 \"json:\\\"total\\\"\" }","time":"2018-09-22T00:21:22Z"}