From 2889ed95741c0e9306846cd28c3ef3d68b4d6391 Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Sun, 18 Feb 2024 16:27:12 -0800 Subject: [PATCH] feat: add appgroup tag to telegraf data --- config_files/telegraf.conf | 1 + observe_configure_script.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config_files/telegraf.conf b/config_files/telegraf.conf index ddb06e01..f7993800 100644 --- a/config_files/telegraf.conf +++ b/config_files/telegraf.conf @@ -1,4 +1,5 @@ [global_tags] + #REPLACE_WITH_OBSERVE_APP_GROUP_TELEGRAF_OPTION # update datacenter names to match Fluent Bit config datacenter = "REPLACE_WITH_DATACENTER" [agent] diff --git a/observe_configure_script.sh b/observe_configure_script.sh index c27dff3c..e98376df 100755 --- a/observe_configure_script.sh +++ b/observe_configure_script.sh @@ -662,6 +662,7 @@ fi if [ "$appgroup" != UNSET ]; then sed -i "s/#REPLACE_WITH_OBSERVE_APP_GROUP_OPTION/Record appgroup ${appgroup}/g" ./* + sed -i "s/#REPLACE_WITH_OBSERVE_APP_GROUP_TELEGRAF_OPTION/appgroup = \"${appgroup}\"/g" ./* fi metadata_buffer_size="8mb" @@ -1235,4 +1236,4 @@ fi log "$SPACER" log "$END_OUTPUT" -log "$SPACER" \ No newline at end of file +log "$SPACER"