💡Setup alertmanager and recording rules

Activate Alertmanager at workspace level, recording rules per workload
This commit is contained in:
Rodrigue Koffi
2022-07-27 23:37:00 +02:00
parent b7e909c92d
commit 333d46cccc
6 changed files with 82 additions and 18 deletions
+20 -5
View File
@@ -55,23 +55,38 @@ variable "managed_prometheus_id" {
default = ""
}
variable "managed_prometheus_endpoint" {
description = "AWS Managed Prometheus Workspace endpoint"
type = string
default = ""
}
variable "managed_prometheus_region" {
description = "AWS Managed Prometheus Workspace Region"
type = string
default = null
}
variable "enable_alertmanager" {
description = "Create AMP AlertManager for all workloads"
type = bool
default = false
}
variable "enable_java" {
description = "Deploys a collector for JAVA/JMX based workloads, dashboards and alerting rules"
type = bool
default = false
}
variable "enable_java_recording_rules" {
description = "Enable AMP recording rules for Java"
type = bool
default = true
}
# variable "java_config" {
# description = "Input configuration Java workloads"
# type = object({
# enable_recording_rules = bool
# })
# }
variable "tags" {
description = "Additional tags (e.g. `map('BusinessUnit`,`XYZ`)"
type = map(string)