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

Upload JMX plugin using Dynatrace API

kfy
Newcomer

Hi,

I can see that through the Dynatrace API it is possible to upload threshold configurations. And through the OneAgent commandline tool it is possible to build and upload plugins.

My question here is...

Is it possible to manage (CRUD) simple jmx plugins (plugin.json) through the dynatrace api??

If not can it be made possible?

BR

Kasper

3 REPLIES 3

kfy
Newcomer

My challenge is that i have a lot of web applications, where the jmx keys are created for each application, and therefore each application needs its own plugin.

If the CRUD functionality is available through the API (like the threshold configuration is) then all of the plugin management could be part of the release pipe.

Jakub_Mierzewsk
Inactive

Hi,You can do this through Plugins SDK, https://dynatrace.github.io/plugin-sdk/readme.html, oneagent_build_plugin command. We don't have API for plugin uploading.

Julius_Loman
DynaMight Legend
DynaMight Legend

@Jakub M., actually you do have API for that 🙂 The oneagent_build_plugin command uses that API. This works for me.

curl -L -XPOST -F file=@plugin.zip -H "Authorization: Api-Token XXXX" https://YYYYY.live.dynatrace.com/api/v1/plugins
Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts