generic-monitor

kabisa/generic-monitor/datadog

Terraform Module HCL DATADOG
Install
module "generic-monitor" {
source = "kabisa/generic-monitor/datadog"
version = "1.0.0"
}
plain text: /constructs/tfmod-kabisa-generic-monitor-datadog/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-datadog-generic-monitor This module is a base module for most of our datadog alerts. A good example use can be found here Getting Started Pre-commit: - Install pre-commit. E.g. brew install pre-commit. - Run pre-commit install in this repo. (Every time you clone a repo with pre-commit enabled you will need to run the pre-commit install command) - That’s it! Now every time you commit a code change (.tf file), the hooks in the hooks: config .pre-commit-config.yaml will execute. Requirements | Name | Version | |------|---------| | datadog | ~> 3.12 | Providers | Name | Version | |------|---------| | datadog | 3.12.0 | Modules No modules. Resources | Name | Type | |------|------| | datadog_monitor.generic_datadog_monitor | resource | Inputs | Name | Description | Type | Default | Req

Inputs (32)
NameTypeDescriptionDefault
envstringThis refers to the environment or which stage of deployment this monitor is chec required
querystringQuery that's based on a metric to be used to raise an alert required
servicestringService name of what you're monitoring. This also sets the service:<service> tag required
alert_messagestringMessage to be sent when the alert threshold is hit required
prioritynumberNumber from 1 (high) to 5 (low). required
namestringName that the monitor should get. Will be automatically prefixed with the Servic required
typestring"metric alert"
no_data_timeframenumbernull
notification_channelstringChannel to which datadog sends alerts, will be overridden by alerting_enabled if""
warning_recoverynumbernull
anomaly_recovery_windowstringrecovery_window value, e.g. last_15m Can only be used for anomaly monitors. httpnull
alerting_enabledboolIf set to false no alerts will be sent based on this monitortrue
docsstringField in the alert message that can be used to document why the alert was sent o""
critical_thresholdnumbernull
warning_thresholdnumbernull
critical_recoverynumbernull
ok_thresholdnumbernull
auto_resolve_time_hnumberTime of hours after which a triggered monitor that receives no data is automaticnull
service_display_namestringnull
require_full_windowbooltrue
lockedboolMakes sure only the creator or admin can modify the monitortrue
notify_no_databoolDo you want an alert when the monitoring stops sending data?false
name_suffixstringCan be used to suffix to the Monitor name""
enabledboolIf set to false the monitor resource will not be createdtrue
no_data_messagestringMessage to be sent when the monitor is no longer receiving data""
notestringField in the alert message that can be used to bring something to the attention ""
Outputs (1)
alert_id
Resources (1)
datadog_monitor
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud DATADOG
Total downloads14.0k
Inputs32
Outputs1
Resources1
Namespacekabisa
Updated