File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
recipes/newrelic/infrastructure/super-agent Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,7 @@ install:
399
399
else
400
400
if [ -f /etc/nr-otel-collector/config.yaml ]; then
401
401
sed -i 's/\<otlp, hostmetrics\>/otlp/g' /etc/nr-otel-collector/config.yaml
402
+ sed -i 's/\<otlp, filelog\>/otlp/g' /etc/nr-otel-collector/config.yaml
402
403
fi
403
404
fi
404
405
Original file line number Diff line number Diff line change @@ -132,10 +132,7 @@ install:
132
132
if [ "{{.NR_CLI_HOST_MONITORING_SOURCE}}" != "otel" ]; then
133
133
mkdir -p "/etc/newrelic-infra/logging.d"
134
134
touch /etc/newrelic-infra/logging.d/logging.yml;
135
- touch /etc/newrelic-infra/logging.d/discovered.yml;
136
- if [ -f /etc/nr-otel-collector/config.yaml ]; then
137
- sed -i 's/\<otlp, filelog\>/otlp/g' /etc/nr-otel-collector/config.yaml
138
- fi
135
+ touch /etc/newrelic-infra/logging.d/discovered.yml;
139
136
fi
140
137
141
138
setup :
Original file line number Diff line number Diff line change @@ -336,6 +336,7 @@ install:
336
336
else
337
337
if [ -f /etc/nr-otel-collector/config.yaml ]; then
338
338
sed -i 's/\<otlp, hostmetrics\>/otlp/g' /etc/nr-otel-collector/config.yaml
339
+ sed -i 's/\<otlp, filelog\>/otlp/g' /etc/nr-otel-collector/config.yaml
339
340
fi
340
341
fi
341
342
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ install:
291
291
else
292
292
if [ -f /etc/nr-otel-collector/config.yaml ]; then
293
293
sed -i 's/\<otlp, hostmetrics\>/otlp/g' /etc/nr-otel-collector/config.yaml
294
+ sed -i 's/\<otlp, filelog\>/otlp/g' /etc/nr-otel-collector/config.yaml
294
295
fi
295
296
fi
296
297
You can’t perform that action at this time.
0 commit comments