From bdb3f911f9b8c758a47c2dbba5df930284384ef0 Mon Sep 17 00:00:00 2001 From: abasha1234 Date: Tue, 14 May 2024 19:09:37 +0530 Subject: [PATCH] feat(tags): Define custom attributes for macos --- recipes/newrelic/infrastructure/darwin.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/newrelic/infrastructure/darwin.yml b/recipes/newrelic/infrastructure/darwin.yml index 482d624e..0c48acbb 100644 --- a/recipes/newrelic/infrastructure/darwin.yml +++ b/recipes/newrelic/infrastructure/darwin.yml @@ -135,6 +135,8 @@ install: sed -i.bak "/^status_server_port/d" "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}".bak sed -i.bak "/^license_key/d" "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}".bak sed -i.bak "/^metrics_process_sample_rate/d" "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}".bak + sed -i.bak '/^custom_attributes:/,/^\S/{ /^\S/!d }' "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}.bak" + sed -i.bak '/^custom_attributes:/d' "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}.bak" else mkdir -p "{{.V2_CONFIG_FILE_DIR}}" touch "{{.V2_CONFIG_FILE}}" @@ -147,6 +149,7 @@ install: echo 'status_server_enabled: true' >> "{{.V2_CONFIG_FILE}}" echo 'status_server_port: 18003' >> "{{.V2_CONFIG_FILE}}" echo 'license_key: {{.NEW_RELIC_LICENSE_KEY}}' >> "{{.V2_CONFIG_FILE}}" + echo '{{.NRIA_CUSTOM_ATTRIBUTES}}' >> "{{.V2_CONFIG_FILE}}" setup_proxy: cmds: