69 lines
1.6 KiB
HCL
69 lines
1.6 KiB
HCL
# Global Terraform
|
|
variable "environment" {
|
|
description = "Architecture environment"
|
|
type = "string"
|
|
}
|
|
|
|
variable "subscription_id" {
|
|
description = "Azure account id used as filter for monitors"
|
|
type = "string"
|
|
}
|
|
|
|
variable "provider" {
|
|
description = "Cloud provider which the monitor and its based metric depend on"
|
|
type = "string"
|
|
default = "azure"
|
|
}
|
|
|
|
variable "service" {
|
|
description = "Service monitored by this set of monitors"
|
|
type = "string"
|
|
default = "storage"
|
|
}
|
|
|
|
# Global DataDog
|
|
variable "message" {
|
|
description = "Message sent when a Redis monitor is triggered"
|
|
}
|
|
|
|
variable "delay" {
|
|
description = "Delay in seconds for the metric evaluation"
|
|
default = 600
|
|
}
|
|
|
|
variable "use_filter_tags" {
|
|
description = "Filter the data with service tags if true"
|
|
default = "true"
|
|
}
|
|
|
|
# Azure Redis specific
|
|
variable "evictedkeys_limit_threshold_warning" {
|
|
description = "Evicted keys limit (warning threshold)"
|
|
default = 0
|
|
}
|
|
|
|
variable "evictedkeys_limit_threshold_critical" {
|
|
description = "Evicted keys limit (critical threshold)"
|
|
default = 100
|
|
}
|
|
|
|
variable "percent_processor_time_threshold_critical" {
|
|
description = "Processor time percent (critical threshold)"
|
|
default = 80
|
|
}
|
|
|
|
variable "percent_processor_time_threshold_warning" {
|
|
description = "Processor time percent (warning threshold)"
|
|
default = 60
|
|
}
|
|
|
|
variable "server_load_rate_threshold_critical" {
|
|
description = "Server CPU load rate (critical threshold)"
|
|
default = 90
|
|
}
|
|
|
|
variable "server_load_rate_threshold_warning" {
|
|
description = "Server CPU load rate (warning threshold)"
|
|
default = 70
|
|
}
|