Skip to content

Commit

Permalink
Feature/updating annotations to inline with EGAP (#232)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
DhrubajyotiSadhu and Dhrubajyoti Sadhu authored Jun 16, 2023
1 parent a2702e6 commit d7fd99b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions k8s-readonly.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions k8s-readwrite.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d7fd99b

Please sign in to comment.