-
Notifications
You must be signed in to change notification settings - Fork 3
/
dd-agent-data.tf
47 lines (40 loc) · 1.53 KB
/
dd-agent-data.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module "dd_agent_data" {
source = "kabisa/service-check-monitor/datadog"
version = "2.0.0"
name = "System - Datadog data missing"
metric_name = "datadog.agent.up"
by_tags = ["host"]
include_tags = coalesce(
var.dd_agent_data_include_tags_override,
var.service_check_include_tags,
[]
)
exclude_tags = coalesce(
var.dd_agent_data_exclude_tags_override,
var.service_check_exclude_tags,
[]
)
alert_message = "Datadog Agent not running is not running on ${var.service} Node {{${var.alert_by}.name}} please check."
recovery_message = "Datadog Agent is back on ${var.service} Node {{${var.alert_by}.name}}"
require_full_window = false
no_data_timeframe = 2
notify_no_data = true
# monitor level vars
enabled = var.dd_agent_data_enabled
alerting_enabled = var.dd_agent_data_alerting_enabled
critical_threshold = 1
warning_threshold = 1
ok_threshold = 1
priority = min(var.dd_agent_data_priority + var.priority_offset, 5)
docs = var.dd_agent_data_docs
note = var.dd_agent_data_note
notification_channel = try(coalesce(var.dd_agent_data_notification_channel_override, var.notification_channel), "")
# module level vars
env = var.env
service = var.service
service_display_name = var.service_display_name
additional_tags = var.additional_tags
locked = var.locked
name_prefix = var.name_prefix
name_suffix = var.name_suffix
}