Skip to content

Commit

Permalink
Use logs instead of metrics token
Browse files Browse the repository at this point in the history
  • Loading branch information
ralongit committed Apr 22, 2024
1 parent f1e2639 commit 6fa2489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources-linux/k8s/datasource_metrics_utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion resources-mac/k8s/datasource_metrics_utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6fa2489

Please sign in to comment.