File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
recipes/newrelic/infrastructure Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ install:
135
135
sed -i.bak "/^status_server_port/d" "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}".bak
136
136
sed -i.bak "/^license_key/d" "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}".bak
137
137
sed -i.bak "/^metrics_process_sample_rate/d" "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}".bak
138
+ sed -i.bak '/^custom_attributes:/,/^\S/{ /^\S/!d }' "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}.bak"
139
+ sed -i.bak '/^custom_attributes:/d' "{{.V2_CONFIG_FILE}}" && rm "{{.V2_CONFIG_FILE}}.bak"
138
140
else
139
141
mkdir -p "{{.V2_CONFIG_FILE_DIR}}"
140
142
touch "{{.V2_CONFIG_FILE}}"
@@ -147,6 +149,7 @@ install:
147
149
echo 'status_server_enabled: true' >> "{{.V2_CONFIG_FILE}}"
148
150
echo 'status_server_port: 18003' >> "{{.V2_CONFIG_FILE}}"
149
151
echo 'license_key: {{.NEW_RELIC_LICENSE_KEY}}' >> "{{.V2_CONFIG_FILE}}"
152
+ echo '{{.NRIA_CUSTOM_ATTRIBUTES}}' >> "{{.V2_CONFIG_FILE}}"
150
153
151
154
setup_proxy :
152
155
cmds :
You can’t perform that action at this time.
0 commit comments