From d7fd99bef2055986e98103a226bfbee352cdb706 Mon Sep 17 00:00:00 2001 From: Dhrubajyoti Sadhu Date: Fri, 16 Jun 2023 10:59:57 +0100 Subject: [PATCH] Feature/updating annotations to inline with EGAP (#232) * Updated the annotations * Added the variable * Added the dash variable * Added the dash variable * Added the dash variable * Added the dash variable * Added the dash variable * Added the changelog --------- Co-authored-by: Dhrubajyoti Sadhu --- CHANGELOG.md | 4 ++++ k8s-readonly.tf | 6 +++--- k8s-readwrite.tf | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e74388..9441825 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [6.18.3] - 2023-06-16 +### Changed +- Updated the annotations to include `EGAP` env for `Hive Metastore R/W and R/O` to Datadog UI. + ## [6.18.2] - 2023-06-01 ### Fixed - `conditional_consumer_iamroles` were not able to list objects within a buckets. diff --git a/k8s-readonly.tf b/k8s-readonly.tf index 9e62d6f..0ad97c0 100644 --- a/k8s-readonly.tf +++ b/k8s-readonly.tf @@ -29,9 +29,9 @@ resource "kubernetes_deployment" "apiary_hms_readonly" { name = "${local.hms_alias}-readonly" } annotations = { - "ad.datadoghq.com/hms-readonly.check_names" = var.datadog_metrics_enabled ? "[\"prometheus\"]" : null - "ad.datadoghq.com/hms-readonly.init_configs" = var.datadog_metrics_enabled ? "[{}]" : null - "ad.datadoghq.com/hms-readonly.instances" = var.datadog_metrics_enabled ? "[{ \"prometheus_url\": \"http://%%host%%:${var.datadog_metrics_port}/actuator/prometheus\", \"namespace\": \"hms_readonly\", \"metrics\": [ \"${join("\",\"", var.datadog_metrics_hms_readwrite_readonly)}\" ] , \"type_overrides\": { \"${join("\": \"gauge\",\"", var.datadog_metrics_hms_readwrite_readonly)}\": \"gauge\"} }]" : null + "ad.datadoghq.com/${local.hms_alias}-readonly.check_names" = var.datadog_metrics_enabled ? "[\"prometheus\"]" : null + "ad.datadoghq.com/${local.hms_alias}-readonly.init_configs" = var.datadog_metrics_enabled ? "[{}]" : null + "ad.datadoghq.com/${local.hms_alias}-readonly.instances" = var.datadog_metrics_enabled ? "[{ \"prometheus_url\": \"http://%%host%%:${var.datadog_metrics_port}/actuator/prometheus\", \"namespace\": \"hms_readonly\", \"metrics\": [ \"${join("\",\"", var.datadog_metrics_hms_readwrite_readonly)}\" ] , \"type_overrides\": { \"${join("\": \"gauge\",\"", var.datadog_metrics_hms_readwrite_readonly)}\": \"gauge\"} }]" : null "iam.amazonaws.com/role" = aws_iam_role.apiary_hms_readonly.name "prometheus.io/path" = "/metrics" "prometheus.io/port" = "8080" diff --git a/k8s-readwrite.tf b/k8s-readwrite.tf index 06a1301..f872dd6 100644 --- a/k8s-readwrite.tf +++ b/k8s-readwrite.tf @@ -29,9 +29,9 @@ resource "kubernetes_deployment" "apiary_hms_readwrite" { name = "${local.hms_alias}-readwrite" } annotations = { - "ad.datadoghq.com/hms-readwrite.check_names" = var.datadog_metrics_enabled ? "[\"prometheus\"]" : null - "ad.datadoghq.com/hms-readwrite.init_configs" = var.datadog_metrics_enabled ? "[{}]" : null - "ad.datadoghq.com/hms-readwrite.instances" = var.datadog_metrics_enabled ? "[{ \"prometheus_url\": \"http://%%host%%:${var.datadog_metrics_port}/actuator/prometheus\", \"namespace\": \"hms_readwrite\", \"metrics\": [ \"${join("\",\"", var.datadog_metrics_hms_readwrite_readonly)}\" ] , \"type_overrides\": { \"${join("\": \"gauge\",\"", var.datadog_metrics_hms_readwrite_readonly)}\": \"gauge\"} }]" : null + "ad.datadoghq.com/${local.hms_alias}-readwrite.check_names" = var.datadog_metrics_enabled ? "[\"prometheus\"]" : null + "ad.datadoghq.com/${local.hms_alias}-readwrite.init_configs" = var.datadog_metrics_enabled ? "[{}]" : null + "ad.datadoghq.com/${local.hms_alias}-readwrite.instances" = var.datadog_metrics_enabled ? "[{ \"prometheus_url\": \"http://%%host%%:${var.datadog_metrics_port}/actuator/prometheus\", \"namespace\": \"hms_readwrite\", \"metrics\": [ \"${join("\",\"", var.datadog_metrics_hms_readwrite_readonly)}\" ] , \"type_overrides\": { \"${join("\": \"gauge\",\"", var.datadog_metrics_hms_readwrite_readonly)}\": \"gauge\"} }]" : null "iam.amazonaws.com/role" = aws_iam_role.apiary_hms_readwrite.name "prometheus.io/path" = "/metrics" "prometheus.io/port" = "8080"