diff --git a/recipes/newrelic/infrastructure/super-agent/debian.yml b/recipes/newrelic/infrastructure/super-agent/debian.yml index 9289a746e..99f134944 100644 --- a/recipes/newrelic/infrastructure/super-agent/debian.yml +++ b/recipes/newrelic/infrastructure/super-agent/debian.yml @@ -332,7 +332,7 @@ install: rm -f /etc/newrelic-super-agent/nrdot-values.yaml sed -i "/^OTEL_EXPORTER_OTLP_ENDPOINT/d" /etc/newrelic-super-agent/newrelic-super-agent.conf # Create nr_otel_collector sub-agent dir - mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector + mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector/values if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then echo 'otel_exporter_otlp_endpoint: "staging-otlp.nr-data.net:4317"' >> /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector/values/values.yml elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then diff --git a/recipes/newrelic/infrastructure/super-agent/rhel.yml b/recipes/newrelic/infrastructure/super-agent/rhel.yml index cdd2fb72f..163b1ce46 100644 --- a/recipes/newrelic/infrastructure/super-agent/rhel.yml +++ b/recipes/newrelic/infrastructure/super-agent/rhel.yml @@ -268,7 +268,7 @@ install: # Remove old config location (to deprecate) rm -f /etc/newrelic-super-agent/nrdot-values.yaml # Create nr_otel_collector sub-agent dir - mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector + mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector/values if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then echo 'OTEL_EXPORTER_OTLP_ENDPOINT=staging-otlp.nr-data.net:4317' >> /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector/values/values.yml elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then diff --git a/recipes/newrelic/infrastructure/super-agent/suse.yml b/recipes/newrelic/infrastructure/super-agent/suse.yml index 0231321d3..a524a6f69 100644 --- a/recipes/newrelic/infrastructure/super-agent/suse.yml +++ b/recipes/newrelic/infrastructure/super-agent/suse.yml @@ -223,7 +223,7 @@ install: # Remove old config location (to deprecate) rm -f /etc/newrelic-super-agent/nrdot-values.yaml # Create nr_otel_collector sub-agent dir - mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector + mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector/values if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then echo 'OTEL_EXPORTER_OTLP_ENDPOINT=staging-otlp.nr-data.net:4317' >> /etc/newrelic-super-agent/fleet/agents.d/nr_otel_collector/values/values.yml elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then