cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom plugin - dynamically read keys?

scott_brenner
Newcomer

Is it possible for a custom Dynatrace plugin to dynamically read keys from the JSON document that an endpoint serves?

Using this as an example -

{"counter": 147, "random": 907}

Say a new key/value pair is added to the endpoint - can the plugin detect this, or does every key have to be hardcoded in the plugin?

{"counter": 147, "random": 907, "new": 4}
2 REPLIES 2

Julius_Loman
DynaMight Guru
DynaMight Guru

Are you asking if the set of metrics returned by a Dynatrace custom plugin can be dynamic? That's unfortunately not possible at the moment. Set of returned metrics has to be defined in plugin descriptor.

TEMPEST a.s., Slovakia, Dynatrace Master Partner

Got it, thank you for the reply.