From 6fa248981c938425dc6da245caad1179580749aa Mon Sep 17 00:00:00 2001 From: ralongit Date: Mon, 22 Apr 2024 09:50:56 +0300 Subject: [PATCH] Use logs instead of metrics token --- resources-linux/k8s/datasource_metrics_utils.bash | 2 +- resources-mac/k8s/datasource_metrics_utils.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources-linux/k8s/datasource_metrics_utils.bash b/resources-linux/k8s/datasource_metrics_utils.bash index d4b2db97b..9b3b5184b 100755 --- a/resources-linux/k8s/datasource_metrics_utils.bash +++ b/resources-linux/k8s/datasource_metrics_utils.bash @@ -232,7 +232,7 @@ function build_logzio_object_logs_token_helm_set { send_log_to_logzio "$LOG_LEVEL_DEBUG" "$message" "$LOG_STEP_METRICS" "$LOG_SCRIPT_METRICS" "$func_name" "$AGENT_ID" "$PLATFORM" "$SUB_TYPE" "$CURRENT_DATA_SOURCE" write_log "$LOG_LEVEL_DEBUG" "$message" - local helm_set=" --set logzio-k8s-telemetry.secrets.k8sObjectsLogsToken=$METRICS_TOKEN" + local helm_set=" --set logzio-k8s-telemetry.secrets.k8sObjectsLogsToken=$LOGS_TOKEN" local message="Logz.io Kubernetes object logs token Helm set is '$helm_set'" send_log_to_logzio "$LOG_LEVEL_DEBUG" "$message" "$LOG_STEP_METRICS" "$LOG_SCRIPT_METRICS" "$func_name" "$AGENT_ID" "$PLATFORM" "$SUB_TYPE" "$CURRENT_DATA_SOURCE" diff --git a/resources-mac/k8s/datasource_metrics_utils.bash b/resources-mac/k8s/datasource_metrics_utils.bash index 585a4cb20..214bd6114 100755 --- a/resources-mac/k8s/datasource_metrics_utils.bash +++ b/resources-mac/k8s/datasource_metrics_utils.bash @@ -232,7 +232,7 @@ function build_logzio_object_logs_token_helm_set { send_log_to_logzio "$LOG_LEVEL_DEBUG" "$message" "$LOG_STEP_METRICS" "$LOG_SCRIPT_METRICS" "$func_name" "$AGENT_ID" "$PLATFORM" "$SUB_TYPE" "$CURRENT_DATA_SOURCE" write_log "$LOG_LEVEL_DEBUG" "$message" - local helm_set=" --set logzio-k8s-telemetry.secrets.k8sObjectsLogsToken=$METRICS_TOKEN" + local helm_set=" --set logzio-k8s-telemetry.secrets.k8sObjectsLogsToken=$LOGS_TOKEN" local message="Logz.io Kubernetes object logs token Helm set is '$helm_set'" send_log_to_logzio "$LOG_LEVEL_DEBUG" "$message" "$LOG_STEP_METRICS" "$LOG_SCRIPT_METRICS" "$func_name" "$AGENT_ID" "$PLATFORM" "$SUB_TYPE" "$CURRENT_DATA_SOURCE"