Skip to content

Commit

Permalink
updated the version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrubajyoti Sadhu committed Feb 22, 2024
1 parent 3ea2bc9 commit 020e68e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ locals {
wd_port = 48869
k8s_cpu = var.cpu / 1024
k8s_cpu_limit = (var.cpu / 1024) * 1.25
abc = local.instance_alias
}

resource "kubernetes_service_account" "waggle_dance" {
Expand Down Expand Up @@ -49,9 +50,9 @@ resource "kubernetes_deployment_v1" "waggle_dance" {
name = local.instance_alias
}
annotations = {
"ad.datadoghq.com/${local.instance_alias}.check_names" = var.datadog_metrics_enabled ? "[\"openmetrics\"]" : null
"ad.datadoghq.com/${local.instance_alias}.init_configs" = var.datadog_metrics_enabled ? "[{}]" : null
"ad.datadoghq.com/${local.instance_alias}.instances" = var.datadog_metrics_enabled ? "[{ \"prometheus_url\": \"http://%%host%%:${var.metrics_port}/actuator/prometheus\", \"namespace\": \"${local.instance_alias}\", \"metrics\": [ \"${join("\",\"", var.datadog_metrics_waggledance)}\" ] }]" : null
"ad.datadoghq.com/${local.abc}.check_names" = var.datadog_metrics_enabled ? "[\"openmetrics\"]" : null
"ad.datadoghq.com/${local.abc}.init_configs" = var.datadog_metrics_enabled ? "[{}]" : null
"ad.datadoghq.com/${local.abc}.instances" = var.datadog_metrics_enabled ? "[{ \"prometheus_url\": \"http://%%host%%:${var.metrics_port}/actuator/prometheus\", \"namespace\": \"waggledance\", \"metrics\": [ \"${join("\",\"", var.datadog_metrics_waggledance)}\" ] }]" : null
"prometheus.io/scrape" : var.prometheus_enabled
"prometheus.io/port" : local.actuator_port
"prometheus.io/path" : "/actuator/prometheus"
Expand Down

0 comments on commit 020e68e

Please sign in to comment.