• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Simon H. · Sep 02, 2015 at 02:35 PM · dashboard rest

Can I put data into dynatrace after extracting via REST

Hi there,

I try to measure the heap size after a GC is done. The idea was to use the data that dynatrace is collecting about the heapsize and correlate these with the timestamp of the GC.

I learned that I can geht the data of dynatrace via REST as a Report.

Now the question is:

Is it possible to put the correlated data back in dynatrace (via REST API) and view them in a dashboard?

I am thankful for every hint or advise.

Greetings

Simon

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

6 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image
Best Answer

Answer by Kristof R. · Sep 02, 2015 at 02:42 PM

Hi Simon,

You could write a monitoring plugin that allows you to import data into Dynatrace again.

For more information you can check the online documentation on plugins: https://community.dynatrace.com/community/display/...

This would not work via REST however. The plugin would go and fetch the data and load it as measures back into Dynatrace.

Hope this helps.

KR, Kristof

Comment
Dominik S.

People who like this

1 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Simon H. · Sep 03, 2015 at 07:13 AM 0
Share

Hey Kristof, thanks for your reply. I take that under consideration. But wouldn't it be better to gather the data within that monitor by JMX then? Becaus thats what I wanted to avoid because of the huge infrastructure und large number of servers of my firm.

greetings

Simon

avatar image

Answer by Simon H. · Sep 07, 2015 at 07:23 AM

Hey,

would it be possible to retrieve the data via rest and after correlation save them in DT again within the same Monitor-Plugin?

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Kristof R. · Sep 07, 2015 at 07:31 AM 1
Share

Hi Simon,

That technically would be possible.

The plugin would both be responsible of fetching the data, doing the correlation, and giving data points back in the form of measures.

KR, Kristof

avatar image

Answer by Simon H. · Sep 09, 2015 at 09:28 AM

Hi again, I tried this and I am now able to get the data via REST and have them now ready to put back.

I try to figure out now how I set the measures in my monitor-plugin per Agent?

Via "environment.setValue(123)" I can set the value of a measure and put them in a List of measures. Fine so far.

Example:

Agent A has the values 1, 2 and 3.

Agent B has the values 4, 5 and 6.

Do I have to create a seperate Metric for each Agent or can this be done differently (more elegant)?

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Simon H. · Sep 10, 2015 at 07:53 AM 0
Share

I may have found the answer here :-)

https://answers.dynatrace.com/questions/95741/dyna...

avatar image

Answer by Jalpesh S. · Sep 11, 2015 at 08:29 AM

Any Monitor plugin available to read data of BTM or Measure ?

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Simon H. · Sep 15, 2015 at 08:08 AM 0
Share

I don't know exactly what you are asking for. But you can pull data from every Dashboard you create with the REST service. The request would be something like

https://<server>:<Port>rest/management/reports/create/<dashboardname>?type=xml&filter=tf:OffsetTimeframe?40:seconds

avatar image

Answer by Simon H. · Sep 16, 2015 at 12:32 PM

Hey, I did it. The data is finally chartable in dynatrace.

Now I face a new Problem. Dynatrace sets a defaultvalue of -1 for a dynamicMeasure which is not providet with a ".setValue(double)". because of that i get a chart like this:

Is it possible, to avoid the default value of -1? I am thinking of not creating a measurement so that the drawn line stays at the last value withozt making those ups and downs if there is no measurement.


2015-09-16-14-29-32-integration-sh-test-heapafterg.png (20.8 KiB)
Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by David M. · Sep 16, 2015 at 04:21 PM

Hi Simon,

Maybe I don't fully understand what you are trying to do but there are some measures you can create that track the number of activations for different types of garbage collectors. Check out the measures "Total GC Activations" and "Specific GC Activations".

HTH,

David

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Simon H. · Sep 17, 2015 at 06:52 AM 0
Share

Hey David,

yeah i knwo about this measures. I use them to find the timestamps of the GC. Then I loog at the memory size at the same timestamp and create a measure with this new value. Becaus there is (in ideal situations) not at every timestamp a GC there is not a value for memory size at every timestamp. (you can see both in my picture of the previous posts)

The Problem here is, that dynatrace sets a default value of -1 if you create a measure but dont set a value. Thats why there are ups and downs.

I would like to have a straight line from one measure point to the other.

So I thought of two possibilities:

- only create a measure if there is a value instead of creating a measure and not setting a value. Problem: if the machine does no GC, I dont get any measures and I can't create a dashboard(it is empty at the beginning)

or

- try to safe the last value and if there is no new value after a GC set the old one. Problem here is: how to do that? Is there a way to keep values within a javaclass of the monitor?

Any ideas on that?

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to fetch UserActions in python code

Errors dashlet not usable via REST API

Export custom xml from dashboard

Contributors Tab in a Dashboard (export via REST)

REST dashboard JSON

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A