Creating a custom metricset according to the document is not working in 7.8. It looks either documentation needs an update or something wrong with the Makefile
https://www.elastic.co/guide/en/beats/devguide/7.8/creating-metricsets.html
make collect
make: *** No rule to make target `collect'. Stop.
