From 13898cac2fa194a829cec5c5cdcfdd7ba7b3b818 Mon Sep 17 00:00:00 2001 From: syedimranhassan Date: Wed, 4 Sep 2024 12:34:44 +0500 Subject: [PATCH] chore: Updated Datadog heartbeat metrics tags --- devops/jobs/CheckASGLifeCycleHooks.groovy | 2 +- devops/resources/janitor.sh | 2 +- devops/resources/table-size-monitoring.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devops/jobs/CheckASGLifeCycleHooks.groovy b/devops/jobs/CheckASGLifeCycleHooks.groovy index 4e7549a45..cf97a83fa 100644 --- a/devops/jobs/CheckASGLifeCycleHooks.groovy +++ b/devops/jobs/CheckASGLifeCycleHooks.groovy @@ -113,7 +113,7 @@ class CheckASGLifeCycleHooks { "metric": "${datadog_heartbeat_name}", "points": [['\$(date +%s)', 1]], "type": "gauge", - "tags": ["env:${deployment}"] + "tags": ["deployment:${deployment}"] }] } """ diff --git a/devops/resources/janitor.sh b/devops/resources/janitor.sh index 609cd7dd7..628b0c748 100644 --- a/devops/resources/janitor.sh +++ b/devops/resources/janitor.sh @@ -50,6 +50,6 @@ curl -X POST "https://api.datadoghq.com/api/v1/series?api_key=${DD_KEY}" \ "metric": '${JOB_NAME##*/}".heartbeat"', "points": [['"$(date +%s)"', 1]], "type": "gauge", - "tags": ["env:'${DEPLOYMENT}'"] + "tags": ["deployment:'${DEPLOYMENT}'"] }] }' diff --git a/devops/resources/table-size-monitoring.sh b/devops/resources/table-size-monitoring.sh index db284ffa8..82cb33305 100644 --- a/devops/resources/table-size-monitoring.sh +++ b/devops/resources/table-size-monitoring.sh @@ -39,6 +39,6 @@ curl -X POST "https://api.datadoghq.com/api/v1/series?api_key=${DD_KEY}" \ "metric": "table-size-monitoring-'${DEPLOYMENT}'.heartbeat", "points": [['"$(date +%s)"', 1]], "type": "gauge", - "tags": ["env:'${DEPLOYMENT}'"] + "tags": ["deployment:'${DEPLOYMENT}'"] }] }'