Questions tagged [terraform-provider-datadog]

19 questions
2
votes
0 answers

Datadog template variable

I have one question here: when defining template variable via datadog, could we use regex for the default value? I am trying to exclude some value from the default value list. Thanks.
1
vote
0 answers

Why is the threshold value repeated in query and monitor_thresholds, in the datadog_monitor terraform resource?

Im trying to grok the datadog_monitor resource, and was wondering if anyone knew why the threshold number to trigger an alert is repeated in the query and in the monitor_thresholds section? For instance: resource "datadog_monitor" "p90_latency" { …
berkeleybross
  • 1,314
  • 2
  • 13
  • 27
0
votes
0 answers

DataDog Monitor alert notification are not send to Distribution lists

I am unable to recieve alerts on the distribution channel from datadog monitors i have tried on two different distribution channel list but unable to recieve any alerts from datadog moniotors apart form this when i send email to individual account i…
0
votes
1 answer

How do I create a Monitor for a Specific Log in DataDog

Hi I'm fairly new to DataDog and I want to create a new monitor to look into one of my services to find a specific log like so “Unable to get latest Previously Acquired Files state. Please try again.” How should I go about doing this? I am…
0
votes
0 answers

Datadog 'page' is invalid: invalid cursor

cursor=$(echo $response | jq -r .meta.page.after) data='{ "filter": { "from": "now", "to": "now-2d", "query": "*" }, "page": { "cursor": "{{cursor}}", "limit": 1000 } }' data=$(echo $data | sed "s/{{cursor}}/$cursor/") response =$(curl -k POST…
0
votes
1 answer

Is there a way to give a list of all x resources to a module in terraform?

We use terraform for datadog, and we have set up folders/modules per team. For Datadog synthetics tests, we have set up one datadog_synthetics_private_location for each environment/region combo (dev/pre-prod/prod-1/prod-2) in the terraform project…
0
votes
0 answers

Datadog Log based monitor using Terraform - invalid query

I am trying to create a log-based monitor using the Datadog Terraform provider. This is a simplified Terraform code as below: resource "datadog_monitor" "monitor_error" { name = "error log" type = "log alert" …
0
votes
0 answers

How to send text file data to datadog dashboard

How to send text file data to datadog dashboard for monitoring My requirement : have text file. it’s updating the status of job with job names every 1 minutes . This result generating via script and written in to this text file , I just want this…
0
votes
1 answer

Is there a way to have division when writing terraform code for a log alert in Datadog?

I want have a terraform code to create a Datadog monitor for the percentage of errors in logs compared with all of them. This is what I've tried resource "datadog_monitor" "log_errors_count" { count =…
Makom123
  • 1
  • 1
0
votes
0 answers

Terraform escape quotes in the string don't work

This is a simplified Terraform code as below: resource "datadog_monitor" "monitor_error" { name = "error log" type = "metric alert" message = "There is error in the log." query =…
0
votes
0 answers

Tracking page load time to a page when coming from a specific other page/route in datadog

As the title suggests, I'm trying to benchmark improvement in page load time for a page (for example, /destination), but I'm trying to have the benchmark/graph only count instances where the user is coming from a specific start page (for example,…
0
votes
0 answers

Datadog query to filter if a string is contained within a tag

I have a parameter, id, that populates a monitor for each id accordingly. I am trying to filter the query so that it excludes those where "to_redshift" is contained within the id. Note, "to_redshift" can either be at the prefix, suffix, or…
0
votes
0 answers

run datadog agent by adding as JAVA_OPS on fluxCD

I have a terraform infra structure project built with FluxCD, that has amongst other things, a spring boot service loaded by a docker image. What I wanna do is to monitor the JVM of this service with datadog on it's service catalog. No need to…
0
votes
1 answer

Trying to use a dynamic block in Terraform to create multiple of the same widget in Datadog

resource "datadog_dashboard" "ordered_dashboard" { title = "SLO Dashboard" description = "Created using the Datadog provider in Terraform" layout_type = "ordered" is_read_only = true dynamic widget { for_each = { for…
0
votes
0 answers

I want to create Datadog Metric SLOs and Monitors using terraform. I want to loop through a list of services that I want to terraform to create

I have ~20 Services that I want to monitor differently so for example I want the monitor to alert me if SerivceA is over 1 second but ServiceB is over 3 seconds. I currently have a list of services text file that is setup…
1
2