Skip to content

Commit

Permalink
feat(tags): Define custom attributes for macos (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
abasha1234 authored May 15, 2024
1 parent 4eaad4b commit a0f99cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/newrelic/infrastructure/darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand All @@ -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:
Expand Down

0 comments on commit a0f99cd

Please sign in to comment.