I installed all the dependencies for creating new metricset with metricbeat(include Bison\Yacc).
After running the "Make create-metricset" and "Make collect" successfully I tried to compile the beat with the "Make" command but it fails with the following errors:
y.tab.c:2405:7: warning: implicit declaration of function ‘yyerror’; did you mean ‘yyerrok’? [-Wimplicit-function-declaration] ../vendor/github.com/yuin/gopher-lua/parse/parser.go.y: At top level: ../vendor/github.com/yuin/gopher-lua/parse/parser.go.y:516:1: error: unknown type name ‘func’ func TokenName(c int) string { ^~~~ ../vendor/github.com/yuin/gopher-lua/parse/parser.go.y:516:16: error: unknown type name ‘c’ func TokenName(c int) string { ^ <builtin>: recipe for target '../vendor/github.com/yuin/gopher-lua/parse/parser.go.o' failed make: *** [../vendor/github.com/yuin/gopher-lua/parse/parser.go.o] Error 1 rm ../vendor/github.com/yuin/gopher-lua/parse/parser.go.c