232 lines
6.3 KiB
HCL
232 lines
6.3 KiB
HCL
# Global Terraform
|
|
variable "environment" {
|
|
description = "Architecture Environment"
|
|
type = "string"
|
|
}
|
|
|
|
# Global DataDog
|
|
variable "delay" {
|
|
description = "Delay in seconds for the metric evaluation"
|
|
default = 600
|
|
}
|
|
|
|
variable "message" {
|
|
description = "Message sent when an alert is triggered"
|
|
}
|
|
|
|
variable "filter_tags" {
|
|
description = "Tags used for filtering"
|
|
default = "*"
|
|
}
|
|
|
|
# Azure IOT hubs specific
|
|
variable "status_silenced" {
|
|
description = "Groups to mute for IoT Hub status monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "total_devices_silenced" {
|
|
description = "Groups to mute for IoT Hub total device monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "too_many_d2c_telemetry_ingress_nosent_silenced" {
|
|
description = "Groups to mute for IoT Hub unsent d2c telemetry monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_jobs_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed jobs monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_jobs_rate_threshold_warning" {
|
|
description = "Jobs Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_jobs_rate_threshold_critical" {
|
|
description = "Jobs Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "failed_listjobs_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed list jobs monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_listjobs_rate_threshold_warning" {
|
|
description = "ListJobs Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_listjobs_rate_threshold_critical" {
|
|
description = "ListJobs Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "failed_queryjobs_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed query jobs monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_queryjobs_rate_threshold_warning" {
|
|
description = "QueryJobs Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_queryjobs_rate_threshold_critical" {
|
|
description = "QueryJobs Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "failed_c2d_methods_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed c2d methods monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_c2d_methods_rate_threshold_warning" {
|
|
description = "C2D Methods Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_c2d_methods_rate_threshold_critical" {
|
|
description = "C2D Methods Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "failed_c2d_twin_read_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed c2d twin read monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_c2d_twin_read_rate_threshold_warning" {
|
|
description = "C2D Twin Read Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_c2d_twin_read_rate_threshold_critical" {
|
|
description = "C2D Twin Read Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "failed_c2d_twin_update_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed c2d twin update monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_c2d_twin_update_rate_threshold_warning" {
|
|
description = "C2D Twin Update Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_c2d_twin_update_rate_threshold_critical" {
|
|
description = "C2D Twin Update Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "failed_d2c_twin_read_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed d2c twin read monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_d2c_twin_read_rate_threshold_warning" {
|
|
description = "D2C Twin Read Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_d2c_twin_read_rate_threshold_critical" {
|
|
description = "D2C Twin Read Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "failed_d2c_twin_update_rate_silenced" {
|
|
description = "Groups to mute for IoT Hub failed d2c twin update monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "failed_d2c_twin_update_rate_threshold_warning" {
|
|
description = "D2C Twin Update Failed rate limit (warning threshold)"
|
|
default = 50
|
|
}
|
|
|
|
variable "failed_d2c_twin_update_rate_threshold_critical" {
|
|
description = "D2C Twin Update Failed rate limit (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "dropped_d2c_telemetry_egress_silenced" {
|
|
description = "Groups to mute for IoT Hub dropped d2c telemetry monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "dropped_d2c_telemetry_egress_threshold_warning" {
|
|
description = "D2C Telemetry Dropped limit (warning threshold)"
|
|
default = 500
|
|
}
|
|
|
|
variable "dropped_d2c_telemetry_egress_threshold_critical" {
|
|
description = "D2C Telemetry Dropped limit (critical threshold)"
|
|
default = 1000
|
|
}
|
|
|
|
variable "orphaned_d2c_telemetry_egress_silenced" {
|
|
description = "Groups to mute for IoT Hub orphaned d2c telemetry monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "orphaned_d2c_telemetry_egress_threshold_warning" {
|
|
description = "D2C Telemetry Orphaned limit (warning threshold)"
|
|
default = 500
|
|
}
|
|
|
|
variable "orphaned_d2c_telemetry_egress_threshold_critical" {
|
|
description = "D2C Telemetry Orphaned limit (critical threshold)"
|
|
default = 1000
|
|
}
|
|
|
|
variable "invalid_d2c_telemetry_egress_silenced" {
|
|
description = "Groups to mute for IoT Hub invalid d2c telemetry monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "invalid_d2c_telemetry_egress_threshold_warning" {
|
|
description = "D2C Telemetry Invalid limit (warning threshold)"
|
|
default = 500
|
|
}
|
|
|
|
variable "invalid_d2c_telemetry_egress_threshold_critical" {
|
|
description = "D2C Telemetry Invalid limit (critical threshold)"
|
|
default = 1000
|
|
}
|
|
|
|
variable "fallback_d2c_telemetry_egress_silenced" {
|
|
description = "Groups to mute for IoT Hub fallback d2c telemetry monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "fallback_d2c_telemetry_egress_threshold_warning" {
|
|
description = "D2C Telemetry Fallback limit (warning threshold)"
|
|
default = 500
|
|
}
|
|
|
|
variable "fallback_d2c_telemetry_egress_threshold_critical" {
|
|
description = "D2C Telemetry Fallback limit (critical threshold)"
|
|
default = 1000
|
|
}
|