Skip to content

Commit

Permalink
chore: Updated janitor job to fix heartbeat metrics name (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
syedimranhassan authored Sep 6, 2024
1 parent 5ee95fe commit 9fee28e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dataeng/resources/opsgenie-enable-heartbeat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


OPSGENIE_HEARTBEAT_API_URL="https://api.opsgenie.com/v2/heartbeats"
PAGERDUTY_HEARTBEAT_API_URL=""

if [ -n "$OPSGENIE_HEARTBEAT_NAME" ] && \
[ -n "$OPSGENIE_HEARTBEAT_CONFIG_KEY" ] && \
Expand Down
2 changes: 1 addition & 1 deletion devops/resources/janitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ curl -X POST "https://api.datadoghq.com/api/v1/series?api_key=${DD_KEY}" \
-H "Content-Type: application/json" \
-d '{
"series" : [{
"metric": '${JOB_NAME##*/}".heartbeat"',
"metric": "'${JOB_NAME##*/}'.heartbeat",
"points": [['"$(date +%s)"', 1]],
"type": "gauge",
"tags": ["deployment:'${DEPLOYMENT}'"]
Expand Down

0 comments on commit 9fee28e

Please sign in to comment.