mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-18 07:33:25 +00:00
feat: Default scrape interval (#49)
* Enable higher but configurable scrape intervals * Use global parameters per job level * Remove scrape limit
This commit is contained in:
@@ -78,6 +78,9 @@ variable "ksm_config" {
|
||||
helm_repo_url = string
|
||||
helm_settings = map(string)
|
||||
helm_values = map(any)
|
||||
|
||||
scrape_interval = string
|
||||
scrape_timeout = string
|
||||
})
|
||||
|
||||
default = {
|
||||
@@ -89,6 +92,9 @@ variable "ksm_config" {
|
||||
helm_settings = {}
|
||||
helm_values = {}
|
||||
k8s_namespace = "kube-system"
|
||||
|
||||
scrape_interval = "60s"
|
||||
scrape_timeout = "15s"
|
||||
}
|
||||
nullable = false
|
||||
}
|
||||
@@ -110,6 +116,9 @@ variable "ne_config" {
|
||||
helm_repo_url = string
|
||||
helm_settings = map(string)
|
||||
helm_values = map(any)
|
||||
|
||||
scrape_interval = string
|
||||
scrape_timeout = string
|
||||
})
|
||||
|
||||
default = {
|
||||
@@ -121,11 +130,29 @@ variable "ne_config" {
|
||||
helm_settings = {}
|
||||
helm_values = {}
|
||||
k8s_namespace = "prometheus-node-exporter"
|
||||
|
||||
scrape_interval = "60s"
|
||||
scrape_timeout = "60s"
|
||||
}
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "tags" {
|
||||
description = "Additional tags (e.g. `map('BusinessUnit`,`XYZ`)"
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "prometheus_config" {
|
||||
description = "Controls default values such as scrape interval, timeouts and ports globally"
|
||||
type = object({
|
||||
global_scrape_interval = string
|
||||
global_scrape_timeout = string
|
||||
})
|
||||
|
||||
default = {
|
||||
global_scrape_interval = "60s"
|
||||
global_scrape_timeout = "15s"
|
||||
}
|
||||
nullable = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user