jmxtrans/embedded-jmxtrans

Programmatic Configuration

shahamit opened this issue · 3 comments

How can I configure embedded-jmxtrans in a programmatic way like it is shown for jmxtrans here ?

Great. The above links helped out. I was able to initialize embedded jmxtrans with the following code

ConfigurationParser parser = new ConfigurationParser();
JsonNode node = mapper.readTree(createJSONString());
EmbeddedJmxTrans embeddedJmxTrans = parser.newEmbeddedJmxTrans(node);
embeddedJmxTrans.start();

Thanks for sharing this sample!