I've created a basic Infiniband stats plugin for Telegraf


I’ve created a basic Infiniband counter stats plugin for Telegraf here: GitHub - willfurnell/telegraf at feature/infiniband

It seems to work well! But as this is one of my first proper go programs I’m unsure of how best to add unit tests - and whether it’s something that you’d even like merged once cleaned up etc?




Thank you for contributing and for your question! Yes, we require unit tests. My best advice is to copy the tests from another plugin that is the most similar to yours and modify. I think this might be the simplest telegraf plugin though if you want to take a look at a simple test example.

Have you tried modifying an existing test already? Please let us know if you run into more hurdles.