06 Mar 2023
12:12 PM
- last edited on
07 Mar 2023
08:03 AM
by
MaciejNeumann
Has anyone encountered a scenario whereby Monaco can be incorporated within an Orchestration Platform like Terraform such that once a Virtual Machine, EC2 Instance or node is spun up, One Agent is Installed Automatically and necessary Dashboards for Infrastructure usage, Services, Tagging of Services and Discovered Processes are automatically done after installation of the agents on the Host using MonaCo
Solved! Go to Solution.
06 Mar 2023 03:53 PM
Configuration-as-code (aka Monaco 2.0) is a binary script that you can call in the Terraform module. For instance using local-exec:
https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec
07 Mar 2023 01:22 AM
Thanks for this @Radoslaw_Szulgo . Am quite new to this provisioning and orchestration platforms.
Could you describe for me, How I can spin up a VM or EC2 Instance or any infrastructure, install or deploy one agent inside the host and then run Monaco on the tenant where the host has connected to in order to configure dashboards, tags, Management zones for the host its services and processes in an Automated way?
Just Basically how to Automate this whole process and also run at scale for instance on hundreds of servers. What would be the optimal approach leveraging on Monaco to avoid performing the configuration steps one at a time which can be time-consuming, tedious and error-prone
07 Mar 2023 09:53 AM
Try with this tutorial: https://www.middlewareinventory.com/blog/terraform-aws-example-ec2/
This will help you understand how to run a terraform plan to launch an EC2 instance.
With this module you can see how to install OneAgent on the target host:
https://github.com/millerkc/template_integration_dynatrace
and then last 3rd step -
Configuration-as-code (aka Monaco 2.0) is a binary script that you can call in the Terraform module. For instance using local-exec:
https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec
More about Configuration-as-code (aka Monaco 2.0) - https://www.dynatrace.com/support/help/manage/configuration-as-code
07 Mar 2023 10:17 AM
Thanks a bunch @Radoslaw_Szulgo for this