generated from kabisa/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
integration.tf
38 lines (32 loc) · 1.47 KB
/
integration.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
locals {
integration_include_tags = var.integration_include_tags_override != null ? var.integration_include_tags_override : var.service_check_include_tags
integration_exclude_tags = var.integration_exclude_tags_override != null ? var.integration_exclude_tags_override : var.service_check_exclude_tags
}
module "integration" {
source = "kabisa/service-check-monitor/datadog"
version = "2.0.0"
name = "Status of Kong Cluster Integration"
metric_name = "kong.can_connect"
# alert specific configuration
require_full_window = false
alert_message = "The Kong Cluster Integration is broken / faulty"
recovery_message = "The Kong Cluster Integration is functioning correctly"
by_tags = ["host"]
include_tags = local.integration_include_tags
exclude_tags = local.integration_exclude_tags
# monitor level vars
enabled = var.integration_enabled
alerting_enabled = var.integration_alerting_enabled
critical_threshold = var.integration_critical
priority = min(var.integration_priority + var.priority_offset, 5)
docs = var.integration_docs
note = var.integration_note
# module level vars
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
locked = var.locked
name_prefix = var.name_prefix
name_suffix = var.name_suffix
}