Icon

Comments have been closed on this page. Please use AppMon & UEM Open Q & A forum for questions about this plugin.

  • Parses the result of an HTTP call and extracts one or more measures.

Plugin Details

Name and Version

REST Monitor Plugin

Compatible with

Dynatrace AppMon 6.3+

Author

Bert Van der Heyden

License

Dynatrace BSD

Support Level

Community supported

Download

https://github.com/Dynatrace/Dynatrace-REST-Monitor-Plugin/releases

Installation and documentation

For installation instructions and additional documentation, see the readme file in the GitHub repo https://github.com/Dynatrace/Dynatrace-REST-Monitor-Plugin/blob/master/README.md

  1. Anonymous (login to see details)

    Hi

    I downloaded the bundle and unzipped it but when installing the plugin from dynatrace client by importing the folder I am getting below error

    2017-02-15 13:56:13 WARNING [Discovery] Bundle update@/opt1/dynatrace-6.3/server/conf/plugins/com.realdolmen.dynatrace.restmonitor_1.0.0.1487184973670.jar not installed.: com.dynatrace.diagnostics.discovery.Discovery b:145 java.lang.NullPointerException         at java.util.zip.ZipFile.getZipEntry(ZipFile.java:566)         at java.util.zip.ZipFile.access$900(ZipFile.java:60)         at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:524)         at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:499)         at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:480)         at java.util.jar.JarFile$JarEntryIterator.next(JarFile.java:257)         at java.util.jar.JarFile$JarEntryIterator.nextElement(JarFile.java:266)         at java.util.jar.JarFile$JarEntryIterator.nextElement(JarFile.java:247)         at com.dynatrace.diagnostics.pde.JavaTools.unjar(SourceFile:207)         at com.dynatrace.diagnostics.discovery.Discovery.a(SourceFile:2649)         at com.dynatrace.diagnostics.discovery.Discovery.installBundle(SourceFile:2329)         at com.dynatrace.diagnostics.discovery.Discovery.installBundle(SourceFile:2234)         at com.dynatrace.diagnostics.server.communication.requesthandler.plugins.SendBundleArchiveRequestHandler.execute(SourceFile:43)         at com.dynatrace.diagnostics.server.communication.requesthandler.plugins.SendBundleArchiveRequestHandler.execute(SourceFile:21)         at com.dynatrace.diagnostics.server.communication.requesthandler.BackendClientRequestHandler.execute(SourceFile:32)         at com.dynatrace.diagnostics.server.communication.requesthandler.BackendClientRequestHandler.execute(SourceFile:11)         at com.dynatrace.diagnostics.sdk.communication.SessionRequestListener$WorkerCallable.execute(SourceFile:473)         at com.dynatrace.diagnostics.util.threads.StatusCallable.call(StatusCallable.java:47)         at java.util.concurrent.FutureTask.run(FutureTask.java:266)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)         at java.lang.Thread.run(Thread.java:745)

    2017-02-15 13:56:13 WARNING [SendBundleArchiveRequestHandler] bundle installation failed: : com.dynatrace.diagnostics.server.communication.requesthandler.plugins.SendBundleArchiveRequestHandler execute:46 java.lang.NullPointerException         at java.util.zip.ZipFile.getZipEntry(ZipFile.java:566)         at java.util.zip.ZipFile.access$900(ZipFile.java:60)         at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:524)

     

  2. Anonymous (login to see details)

    What happens when you just use the released packaged version: com.realdolmen.dynatrace.restmonitor_1.0.0.jar?

  3. Anonymous (login to see details)

    I just released version 1.2.0 with some extra small features regarding nodes which don't exist within XML responses. But also with some bugfixes.

    Direct download link com.realdolmen.dynatrace.restmonitor_1.2.0.jar

  4. Anonymous (login to see details)

    Hi Bert,  

    I am trying to extend this plugin to integrate with Akana. To access Akana, I first need to login via a POST, then from the response do some string manipulation to the cookie and token. Then append both as headers to the GET to the Akana rest api. Would you be able to assist me with this if possible?

    Thanks

     Hao-lin

  5. Anonymous (login to see details)

    Hi, 

    we also need this feature to use it for monitoring of our internal applications. 

    We first need to login and use the custom HTTP header returned in reply to login request for further REST calls. 

    Thanks,

    Murat 

     

    1. Anonymous (login to see details)

      Be my guest to use the source code which is available on github and modify where needed.

      • I assume you could just add an authentication method in the AuthMethod enum. (Akana for example)
      • In plugin.xml, you need to specify this value to, so it can be selected. property serverAuth
      • Within RestMonitor, you can modify the "private void setupAuth(DynaTraceHttpClient httpClient)" method to deal with new type of authentication. Note that this method is only called one during the startup of the plugin. If you need to deal with authentication at every request, you will need to add it inside the execute method aswell. Only if the "Akana" authMethod was chosen.

      Feel free to create a branch on Github, make the modifications, and if all works well. I can include this new feature in the master branch.

  6. Anonymous (login to see details)

    Hi all,

    We have disabled comments on this plugin page.

    Please use the AppMon & UEM Plugins forum for questions about this plugin.

    Sorry to interrupt ongoing discussions. Please re-post your last question in AppMon & UEM Plugins forum.