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

Create a chart for Host Unit consumption

service_apms
Organizer

Hello

is there a way to create a chart for HU consumption like the one we have on DEM units with the Billing section ?

If not do you have any suggestions ? how do you deal with this subject ?

Thank you

 

25 REPLIES 25

ugo_abbuehl
Participant

Same need here also...

ChadTurner
DynaMight Legend
DynaMight Legend

Hello everyone. This use to be possible via the UI and was quite easy, but now you will need to resort to the Environment API for this data to be pulled.


If you are a SAS customer you can also Navigate to the Cluster page, just like in Managed, and see the overall consumption as well as per the environment. This will show as host unit hours or host units - depending on you contract.

-Chad

ChadTurner
DynaMight Legend
DynaMight Legend

You can also use the following: https://dynatrace.github.io/BizOpsConfigurator/#HUreport

-Chad

Is there a way to create this report in an automated manner so the data can be extracted and loaded to a visualization tool or Dynatrace itself?

Hi, the tool is first doing an API call to

https://*******.live.dynatrace.com/api/v1/entity/infrastructure/hosts?includeDetails=true

 

Which returns a JSON doc with lots of fields but the one you care about is consumedHostUnits:

[{
  ...
  "consumedHostUnits": 0.25
  ...
}]

 

From there, the tool is performing this logic to calculate the different figures.

 

If you'd like Dynatrace to build this automated report for you, I'd advise speaking to your local Dynatrace Services team lead who will be able to assist.

Hello. Is this dashboard still available?

Thanks.

I'm using a custom extension "missing metrics" that calculates the HU consumption per host/hostgroup/tag and reports this back to dynatrace as a metric so we can put it on a dashboard:

r_weber_0-1670506492012.png

The AG extension is rather simple, uses the API to get entities and reports back the overall HU consumption per "licensebucket" tag. If you're interested I can share it.

 

Certified Dynatrace Master, Dynatrace Partner - 360Performance.net

My primary scope is to calculate HU consumption per MZ. Please share it if we can filter consumption per MZ!

Thank you!

Thodoros

@Theodore_x86  I have something similar to @r_weber's solution (not having that as AG extension), you can get the script from here:
https://github.com/Alanata-a-s/Dynatrace-License-Reporting-Scripts
It pushes back metric bound to the hosts, so you can easily then query the sum per MZ in Data Explorer and have that on a dashboard.

Also besides calculating it also can send event in case a host get disabled due to license exhaustion. (One event per host at the moment)

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Hi @Julius_Loman 

This is great implementation!.

Downloaded the code, set 2 environment variables and run it.

With no time got invaluable information from the dashboard and problems that were created!  

Thanks for sharing!

Yos 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Thanks for the positive feedback!

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

I'd like to get that if possible.

I Like this data.
Can you please share for me :).
Trying to get HU data from our environment.
It looks like we need more and I trying to see how much more.
Thank you.

 

dneimke
Frequent Guest

There needs to be an out-of-the box solution for the v2 API.  

Of course !

It looks API v1 are deprecated.

dt.entity.host on v2 doesn't seems to get the information.

For the moment, as far as I know, there is no way to do it using notebooks or new dashboards with Grail 😕 

That's a missing part !

Kenny_Gillette
DynaMight Leader
DynaMight Leader

Also, I got a Notebook from Dynatrace that looks at Host Units.

Kenny_Gillette_0-1711737924262.png

If someone wants it, will have to figure out how to get to you

Dynatrace Certified Professional

Hi,

Maybe, you can upload it to Playground tenant.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Yes it could be great if you were able to share it ! 🙂 

Attached in zip so that appears to work

Dynatrace Certified Professional

Many thanks to you !!!  😀

Thank you!!

I have just downloaded and trying to import it but I am getting an error:

AntonPineiro_0-1712065769817.png

Maybe do I need to tweak something before? Thank you again.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

It's not a dashboard but a notebook 🙂 

Sorry, you are right. Thank you! 😊

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Upload the json file, not the zip!

Not allowed

The file type (.json) is not supported. Valid file types are: gif, png, jpg, jpeg, zip, tar.gz, pdf, txt, docx, dts, xlsx, pptx, bmp, log, vsd, pcap, csv, dmp, heic.

Dynatrace Certified Professional

Featured Posts