From 6bf9203221c966c7ede0e0e42d334e4d5be421e4 Mon Sep 17 00:00:00 2001 From: "anne.lhomme" Date: Tue, 3 Sep 2024 15:52:02 +0200 Subject: [PATCH] add SUM_MAX_INSTANCES_FETCHED --- technologies/app/saagie-usage-monitoring/README.md | 3 ++- .../saagie-usage-monitoring-2023.05/code/utils.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/technologies/app/saagie-usage-monitoring/README.md b/technologies/app/saagie-usage-monitoring/README.md index 7e47d1560..0a868d15c 100644 --- a/technologies/app/saagie-usage-monitoring/README.md +++ b/technologies/app/saagie-usage-monitoring/README.md @@ -18,8 +18,9 @@ To deploy Saagie Usage Monitoring on your platform, you need to create a user wi - `SAAGIE_AND_S3` if you want to monitor Saagie and S3 buckets - IP_HDFS (Required if MONITORING_OPT=`SAAGIE_AND_DATALAKE`) : Namenode IP - AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_S3_ENDPOINT and AWS_REGION_NAME (Required if MONITORING_OPT=`SAAGIE_AND_S3`) -- SAAGIE_SUM_CRON : Cron to collect Saagie informations on API (Optionnal, Default value : `0 * * * *`) +- SAAGIE_SUM_CRON : Cron to collect Saagie informations on API (Default value : `0 * * * *`) - REQUEST_TIMEOUT : Manage SaagieAPI request timeout (Default value in seconds : `10`) +- SUM_MAX_INSTANCES_FETCHED : Number of instances recovered, for jobs and pipelines (Default value : `1000`) For an external Postgres database : - SAAGIE_PG_HOST : Postgresql host (Default value : `localhost`) diff --git a/technologies/app/saagie-usage-monitoring/saagie-usage-monitoring-2023.05/code/utils.py b/technologies/app/saagie-usage-monitoring/saagie-usage-monitoring-2023.05/code/utils.py index 0e950f5f9..fb86d8bce 100644 --- a/technologies/app/saagie-usage-monitoring/saagie-usage-monitoring-2023.05/code/utils.py +++ b/technologies/app/saagie-usage-monitoring/saagie-usage-monitoring-2023.05/code/utils.py @@ -30,7 +30,7 @@ timeout = int(os.environ["REQUEST_TIMEOUT"]) # Workaround for platforms with too many instances -MAX_INSTANCES_FETCHED = os.environ.get("SMT_MAX_INSTANCES_FETCHED", 1000) +MAX_INSTANCES_FETCHED = os.environ.get("SUM_MAX_INSTANCES_FETCHED", 1000) class SaagieUtils(object):