• 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 /
  • Dynatrace /
  • Dynatrace Open Q&A /
avatar image
Question by Francisco A. · Jun 13, 2018 at 11:08 AM · Dynatrace Managed rest api

Can we obtain license info with dynatrace API?

We need to get the host license consume, Can we get it using Dynatrace API?

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.

4 Replies

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

Answer by Ugochukwu N. · Jun 13, 2018 at 07:05 PM

Hi Fransisco,

Not directly but this is possible. The API call to fetch the list of monitored hosts also contains the consumed host units for each host in the response. You can write a script (using Python for example to parse this info and calculate the consumed host units) it also contains the info of the hosts monitoring mode (i.e Full Stack or Cloud infra). It is not as simple but it can be done.

Thanks

NJ

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 Luis M. · Jun 20, 2018 at 08:17 AM

Hi,

JSON does contain version information:

"agentVersion":{"major":1,"minor":143,"revision":161,"sourceRevision":"","timestamp":"20180524-165023"}

I guess you refer to firstSeenTimestamp and lastSeenTimestamp, am I correct? if so, would a turned down/unresponsive server get lastSeenTimestamp updated? we could be taking out servers from the report that are temporarily down or unresponsive. Shouldn't disabled monitored servers be taken out of the API query?

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 Luis M. · Jun 19, 2018 at 11:06 AM

The API is exporting data of servers that do have monitoring disabled but returned JSON does not show whether monitoring is enabled or disabled. Is that a bug in API behavior? if not, how can we filter on actively monitored hosts?

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 Ugochukwu N. · Jun 19, 2018 at 03:13 PM 0
Share

Hi Luis,

For the hosts with monitoring disabled, do you see the agentVersion property for them? That could be a way to filter them with a script (e.g. python) if there is no value for that property for these disabled hosts. Another possible option is to use the startTimestamp and endTimestamp filters in the API call for a more recent time to ensure only recently seen hosts in that time-range are reported. These timestamps must be in UTC milliseconds with a max of 3 days.

Thanks

NJ

avatar image

Answer by Francisco A. · Jun 14, 2018 at 06:22 AM

Hi that's is what we saw in the API, but we want to know if it's directly accessible.

We should extract the information then.

Thank you.

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 Ugochukwu N. · Jun 14, 2018 at 05:00 PM 0
Share

No problem. You can create an RFE for this to be directly accessible via an API call.

Thanks

NJ

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

21 People are following this question.

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

Related Questions

Fetching WebService performance Statistics

Push a custom metric to a custom device to dynatrace

Memory Utilization vs Used memory

API Tenant Token

Null Values in API Timeseries

Forum Tags

mobile monitoring dotnet iis chat kubernetes servicenow amazon web services feedback mysql mainframe application rules rest api cassandra dashboard oneagent sdk cmc waterfall chart application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo opentelemetry integrations activegate auto-detection high five award uem webserver usql iib test automation license ios news migration management zones ibm mq web services notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming resource javascript appmon ai availability tipstricks automation extensions diagnostic tools session replay permissions search davis assistant auto-update faq documentation problem detection http monitors easytravel apdex network docker tags and metadata cloud foundry google cloud platform synthetic monitoring lambda process groups account usability dynatrace saas gui paas openshift key user actions administration production user actions postgresql synthetic locations upgrade oneagent security Dynatrace Managed user management python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting performance monitoring NGINX action naming geolocation linux nam installation error reporting database mission control apache slo mobileapp RUM php azure purepath davis scripting aix nodejs android
  • 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