From e18a085fdb85678e4645da6f8998bde0fb877f8b Mon Sep 17 00:00:00 2001 From: syedimranhassan Date: Mon, 11 Dec 2023 12:41:26 +0500 Subject: [PATCH] fix: fix edge mysql monitoring job --- devops/jobs/ListMysqlProcess.groovy | 6 ++++++ devops/resources/list-mysql-process.sh | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/devops/jobs/ListMysqlProcess.groovy b/devops/jobs/ListMysqlProcess.groovy index d48f2832a..f72139aff 100644 --- a/devops/jobs/ListMysqlProcess.groovy +++ b/devops/jobs/ListMysqlProcess.groovy @@ -37,10 +37,16 @@ class ListMysqlProcess { rdsignore = "${rdsignore}-i ${ignore} " } + def regioninclude = "" + configuration.REGION_LIST.each { include -> + regioninclude = "${regioninclude}-r ${include} " + } + environmentVariables { env('AWS_DEFAULT_REGION', extraVars.get('REGION')) env('ENVIRONMENT', environment) env('RDSIGNORE', rdsignore) + env('REGIONINCLUDE', regioninclude) } multiscm { diff --git a/devops/resources/list-mysql-process.sh b/devops/resources/list-mysql-process.sh index c811c905e..1d86c8e8c 100644 --- a/devops/resources/list-mysql-process.sh +++ b/devops/resources/list-mysql-process.sh @@ -22,5 +22,8 @@ set -x if [[ ! -v RDSIGNORE ]]; then RDSIGNORE="" fi +if [[ ! -v REGIONINCLUDE ]]; then + REGIONINCLUDE="" +fi -python list_mysql_process.py --environment ${ENVIRONMENT} ${RDSIGNORE} +python list_mysql_process.py --environment ${ENVIRONMENT} ${RDSIGNORE} ${REGIONINCLUDE}