Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manager/cluster_config_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@

import sys
import yaml
import json


def export(base_key, value):
if base_key.lower().startswith("cortex_tags"):
inlined_tags = ",".join([f"{k}={v}" for k, v in value.items()])
print(f"export CORTEX_TAGS={inlined_tags}")
print(f"export CORTEX_TAGS_JSON='{json.dumps(value)}'")
return

if value is None:
Expand Down
1 change: 1 addition & 0 deletions manager/manifests/fluentd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ data:
region "#{ENV['AWS_REGION']}"
log_group_name_key group_name
log_stream_name_key stream_name
log_group_aws_tags ${CORTEX_TAGS_JSON}
remove_log_stream_name_key true
remove_log_group_name_key true
auto_create_stream true
Expand Down