How to write an LDMS Sampler Plugin