diff --git a/bootstrap/daemon/daemon.toml.tftpl b/bootstrap/daemon/daemon.toml.tftpl index c8968af..020c969 100644 --- a/bootstrap/daemon/daemon.toml.tftpl +++ b/bootstrap/daemon/daemon.toml.tftpl @@ -1,9 +1,12 @@ topic = "${topic}" cluster_id = "${cluster_id}" -prometheus_url = "${prometheus_url}" delay_sec = ${prometheus_delay_sec} +[prometheus] +url = "${prometheus_url}" +step = "${prometheus_query_step}" + [kafka] "bootstrap.servers" = "${broker_urls}" "group.id"= "${consumer_name}" diff --git a/bootstrap/daemon/main.tf b/bootstrap/daemon/main.tf index f22eea6..2eaf6f8 100644 --- a/bootstrap/daemon/main.tf +++ b/bootstrap/daemon/main.tf @@ -54,6 +54,12 @@ variable "prometheus_delay_sec" { default = 60 } +variable "prometheus_query_step" { + type = string + description = "Usage Query Step" + default = "10m" +} + variable "tolerations" { type = list(object({ effect = string