Closed robin-maxxton closed 7 years ago
Managed to fix the issue by adding
bt.client = b.Publisher.Connect()
to springbeat.go on line 85
https://github.com/consulthys/springbeat/blob/master/beater/springbeat.go#L85
I guess this became mandatory with the release of 5.x.
Thanks for reporting this. It's weird that I didn't see the same issue. I'll check out your PR and merge it asap.
Hi,
Thanks for creating this MetricBeat module. It's a good base for getting the metrics from Spring into Elasticsearch
I tried to build ans run it but I keep getting the following error
It always occurs after getting the metrics info from the Spring boot application, and stops the daemon with a fatal error
Did some research on the Golang GitHub page and found out that this is a known issue which can be solved by removing the pkg folder(s) and rebuilding everything. https://groups.google.com/forum/#!topic/golang-dev/kkVa_W1IenE
The odd thing is that this doesn't help fix the error. I also tried it on a fresh Ubuntu installation, but it still gives throws the same error.
Steps I followed
Please note that I added the /src folder before the github.com folder. Otherwise I was unable to build the code (please refer to the documentation that has the same folder structure https://www.elastic.co/guide/en/beats/libbeat/current/newbeat-generate.html)
Any idea how this issue can be fixed? Thanks in advance