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

Dynatrace Terraform provider?

matthew_eisengr
Inactive

Does Dynatrace have any kind of Terraform provider?

I have a client that uses Terraform and would like to auto-add maintenance windows for machines and be able to generate an AWS API token and associate it with the IAM Dynatrace role.

11 REPLIES 11

arunraj_r
Inactive

Matthew, Do you find any solution for this question ?

I did not, although I'm sure there is one... just haven't had a reply yet.

Thanks for the quick reply.

pawel_brzoska
Inactive
@Matthew E.

can you elaborate a bit on the use case ? Is it about Terraform providing Dynatrace info about maintenance windows so we suppress allerting based on this for specified machines ? Also please clarify what do you want to solve with your second request.

Pawel,

I will try and explain although I don't understand Terraform terribly well.

I think what the client was trying to do was to use Terraform to push out changes and as part of that tell Dynatrace to enter that entity into a 'maintenance mode' so that Dynatrace AI wouldn't generate an alert for an unavailable host or service. I think they also wanted that logged on the Dynatrace side (assuming using the Events API).

So I guess the question really is, what kinds of integration could we do with Terraform? It was more an art of the possible question than a specific use case although they are looking to do two specific things.

1) Have Terraform create a maintenance window inside Dynatrace for entities that are being affected by change

2) Have Terraform push an event via the events API so that context is given inside Dynatrace.

I think our APIs have this capability already but they are looking for a Terraform example of it.


matthew_eisengr
Inactive

Karolina that link is for this question. Here is the link for the product idea: https://community.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/209995/provide-integration-w...


You're right 🙂


Keep calm and build Community!

After some Googling, I found other Dynatrace users have made attempts with Terraform for various use cases...

https://github.com/raffaele-talarico/dynatrace-terraform-aws

https://github.com/dyladan/terraform-provider-dynatrace


But what would be really good would be to offer an officially supported provider like some of your competitors (i.e. Data Dog, New Relic).


We just ran into a use case where we wanted to use Terraform to create an AWS account, then add that AWS account into Dynatrace for CloudWatch integration. All the APIs for this exist, so it could be done by community, but it would be fantastic if Dynatrace worked with HashiCorp to have an officially supported provider and appeared on this list https://www.terraform.io/docs/providers/index.html.


Radoslaw_Szulgo
Dynatrace Guru
Dynatrace Guru

It's officially there: https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest

Senior Product Manager,
Dynatrace Managed expert

kunalv12
Visitor

Any clue on how often this is looked at -  https://github.com/dynatrace-oss?q=&type=all&language=&sort= ? Have reported some issue around maintenance windows 

https://github.com/dynatrace-oss/terraform-provider-dynatrace/issues/145 

keen if we can get support around this. 

 

Cheers,

Kunal

The terraform provider (at https://github.com/dynatrace-oss/terraform-provider-dynatrace) is being actively developed/enhanced.  I believe a fix for the issue you mention is targeted for release this week.

Featured Posts