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

Dynatrace hourly license: auto-stop agent monitoring during non-business hours

Dynatrace Champion
Dynatrace Champion

Hello Team,

Customer is using DT hourly license. Where we wanted to stop Dynatrace agent monitoring during non-business hour as the nature of the application don't have customer landing during non-business hours (between 7pm to 8am)

Customer is expecting this feature to be included within Dynatrace as it is providing the flexi with hourly license consumption.

Just wanted to know what the other options are to handle this request.




Have a nice day!

DynaMight Legend
DynaMight Legend

The easiest way is to utilize the Settings API with the schema builtin:host.monitoring to enable and disable the hosts as required. You need to disable them individually (one call per host). However you will need to keep in mind if some processes have been restarted on the hosts while OneAgent was disabled, then they need to be restarted again after monitoring was enabled back to get the code modules injected.

We've developed an automation tool to handle such situations for our customers (managing agents per hostgroup or tag, getting license utilization and getting the list of processes to be restarted). 

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

Hi @Julius_Loman ,

Nice tool...:dynaspin:

Best regads,


Certified Dynatrace Professional

@Mizső thanks - the power comes when combined with automatic disabling of new OneAgent installations. Then you can safely roll out OneAgents across the environment and enable them afterwards where required.

It saves a huge amount of manual work in the UI.

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

Thank you @Julius_Loman. Can this tool be available in Dynatrace Hub/gitHub someday.

Have a nice day!