Metricset creation is broken on forked beats tree?

HI,

Is it possible to develop metricset on a forked elastic/beats repository?
Right now it seems that the build system is broken. When forking the repo, and then doing make create-metricset, the boilerplate code gets created. However, make collect; make builds a disfunctional metricbeat that gives the following error when ran:

2019-02-05T11:42:26.495-0800 INFO instance/beat.go:410 metricbeat stopped.
2019-02-05T11:42:26.496-0800 ERROR instance/beat.go:800 Exiting: 1 error: 1 error: metricset 'infiniband/counters' is not registered, module not found
Exiting: 1 error: 1 error: metricset 'infiniband/counters' is not registered, module not found

Doing exactly same step from cloned (not forked) elastic/beats works (a boilerplate metricset with single counter register)

I consider it a bug. Is it not? Should build system be robust enough to survive forking? Should an issue be opened on elastic github for it? Thanks!

Grigory Shamov
University of Manitoba

Hi @Grigory_Shamov

No, it's not possible, but it's pretty simple. You just download only the original elastic/beats. You work on elastic/beats folder and push changes to new branches in your fork (which you don't need to download).

This is the preferred way we have to work in Beats and it's by design. :slight_smile:

Thanks for you comments!

Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.