Skip to content

schubergphilis/terraform-datadog-mcaf-monitor

Repository files navigation

terraform-datadog-mcaf-monitor

A module for building Datadog monitors in Terraform

Requirements

Name Version
terraform >= 1.2.0
datadog >= 3.3.0

Providers

Name Version
datadog >= 3.3.0

Modules

No modules.

Resources

Name Type
datadog_monitor.default resource

Inputs

Name Description Type Default Required
dashboard The Datadog dashboard URL shown in the alert message string "" no
evaluation_delay Seconds to delay evaluation to ensure the monitor has a full data period number null no
include_tags Whether to insert the triggering tags into the monitoring title bool true no
monitors The set of monitor specific attributes per monitor
map(object({
message = string
name = string
query = string
thresholds = map(string)
threshold_windows = object({
recovery_window = string
trigger_window = string
})
type = string
}))
null no
new_group_delay Seconds after booting before starting the evaluation of monitor results number null no
no_data_timeframe The number of minutes before a monitor will notify when data stops reporting number null no
notifiers The notifiers to which the alerts get send list(string) [] no
notify_no_data Whether this monitor will notify when data stops reporting bool true no
priority Integer from 1 (high) to 5 (low) indicating alert severity number null no
renotify_interval The number of minutes before a monitor will re-notify on the current status number null no
require_full_window A boolean indicating whether the monitor needs a full window of data before it's evaluated bool true no
tag_list A list of tags to assign to the monitor list(string) [] no
tag_map A map of tags to assign to the monitor map(string) {} no
timeout Hours of not reporting data before automatically resolving from a triggered state number null no

Outputs

Name Description
monitor_ids A map with all monitor names and IDs