From d87b1db69415d0152e6fbac719c9b0d3790d617c Mon Sep 17 00:00:00 2001 From: syedimranhassan Date: Mon, 21 Oct 2024 17:38:04 +0500 Subject: [PATCH] chore: Updated jenkins h=jobs to export RDS deadlocks to datadog --- devops/jobs/ExportRDSDeadLocks.groovy | 4 +--- devops/resources/export-dead-locks.sh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/devops/jobs/ExportRDSDeadLocks.groovy b/devops/jobs/ExportRDSDeadLocks.groovy index 335dcbef1..420c2c0a9 100644 --- a/devops/jobs/ExportRDSDeadLocks.groovy +++ b/devops/jobs/ExportRDSDeadLocks.groovy @@ -23,7 +23,7 @@ class ExportRDSDeadLocks { wrappers { credentialsBinding { usernamePassword("USERNAME", "PASSWORD", "${deployment}-${environment}-export-dead-locks-credentials") - usernamePassword("SPLUNKUSERNAME", "SPLUNKPASSWORD", "export-dead-locks-splunk-credentials") + string("DDAPIKEY", "datadog_api_key") def variable = "${deployment}-export-dead-locks" string("ROLE_ARN", variable) } @@ -48,8 +48,6 @@ class ExportRDSDeadLocks { environmentVariables { env('AWS_DEFAULT_REGION', extraVars.get('REGION')) env('ENVIRONMENT', environment) - env('HOSTNAME', extraVars.get('SPLUNKHOSTNAME')) - env('PORT', extraVars.get('PORT')) env('INDEXNAME', INDEXNAME) env('RDSIGNORE', rdsignore) env('WHITELISTREGIONS', whitelistregions) diff --git a/devops/resources/export-dead-locks.sh b/devops/resources/export-dead-locks.sh index 381992316..8a5f2ae1b 100644 --- a/devops/resources/export-dead-locks.sh +++ b/devops/resources/export-dead-locks.sh @@ -26,4 +26,4 @@ if [[ ! -v WHITELISTREGIONS ]]; then WHITELISTREGIONS="" fi -python export_dead_locks.py --environment ${ENVIRONMENT} --hostname ${HOSTNAME} --port ${PORT} --indexname ${INDEXNAME} ${RDSIGNORE} ${WHITELISTREGIONS} +python export_dead_locks_dd.py --environment ${ENVIRONMENT} --indexname ${INDEXNAME} ${RDSIGNORE} ${WHITELISTREGIONS}