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:
Rodrigue Koffi
2022-10-04 18:20:14 +02:00
committed by GitHub
parent 27e9cc84ea
commit 6032c6da23
7 changed files with 117 additions and 71 deletions
+27
View File
@@ -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
}