Host unit consume metric

Hi Team,

I would like to get values the HOST UNIT consumption and split by host to show each hostname via api.

compare with last month and latest month is there any metric on api v2 could do that?

ps.  not use dps pricing model

Regards,

Hi @AskMe-Solutions , there use to be an option to query from V1 API but its deprecated now . Not sure there is something similar available in V2 API yet.

@AskMe-Solutions If you are fine with some alternate option here is a script created by @Julius_Loman and some alternate options dicussed below

https://community.dynatrace.com/t5/Open-Q-A/How-can-I-vizualize-the-host-consumption-per-host/m-p/211967

Hi P_devulapalli,

Yep, if host data in an hour this solution it’s work but the limitation is I want the data from like last month and latest month but thanks so much for the solutions.

Regards,

TBH I’m not sure what is not possible in your case. My scripted solution of course cannot regenerate data back, but if you keep it running you will be able to report and compare consumption across intervals.

It’s probably not wise to run it on a minute-based interval especially in larger environments as the call to OneAgents v1 API takes some time. I’d recommend 15 minutes or 1 hour intervals.