add api key to tiny tuya target in prometheus scrape [ci skip]

This commit is contained in:
Viktor Barzin 2025-11-09 22:03:25 +00:00
parent 0616f05ec1
commit 0b7b092c26
4 changed files with 137 additions and 9 deletions

View file

@ -10,6 +10,7 @@ variable "idrac_password" {
default = "calvin"
}
variable "alertmanager_slack_api_url" {}
variable "tiny_tuya_service_secret" { type = string }
module "tls_secret" {
source = "../setup_tls_secret"
@ -71,7 +72,7 @@ resource "helm_release" "prometheus" {
# version = "15.0.2"
version = "25.8.2"
values = [templatefile("${path.module}/prometheus_chart_values.tpl", { alertmanager_mail_pass = var.alertmanager_account_password, alertmanager_slack_api_url = var.alertmanager_slack_api_url })]
values = [templatefile("${path.module}/prometheus_chart_values.tpl", { alertmanager_mail_pass = var.alertmanager_account_password, alertmanager_slack_api_url = var.alertmanager_slack_api_url, tuya_api_key = var.tiny_tuya_service_secret })]
}
# Terraform get angry with the 30k values file :/ use ansible until solved