Skip to content

Commit 3ad1536

Browse files
committed
feat: merge files and directories
1 parent 8b3b6d3 commit 3ad1536

File tree

4 files changed

+146
-391
lines changed

4 files changed

+146
-391
lines changed

agent-control/agent-type-registry/newrelic/com.newrelic.infrastructure-0.1.0.yaml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,26 +114,19 @@ deployment:
114114
args: --version
115115
regex: \d+\.\d+\.\d+
116116
filesystem:
117-
files:
118-
config:
119-
path: newrelic-infra.yaml
120-
content: |
121-
${nr-var:config_agent}
122-
directories:
123-
integrations:
124-
path: integrations.d
125-
items: ${nr-var:config_integrations}
126-
logging:
127-
path: logging.d
128-
items: ${nr-var:config_logging}
117+
config:
118+
newrelic-infra.yaml: |
119+
${nr-var:config_agent}
120+
integrations.d: ${nr-var:config_integrations}
121+
logging.d: ${nr-var:config_logging}
129122
executables:
130123
- id: newrelic-infra
131124
path: /usr/bin/newrelic-infra
132125
args: >-
133-
--config=${nr-sub:autogenerated_agent_dir}/files/newrelic-infra.yaml
126+
--config=${nr-sub:autogenerated_agent_dir}/config/newrelic-infra.yaml
134127
env:
135-
NRIA_PLUGIN_DIR: "${nr-sub:autogenerated_agent_dir}/directories/integrations.d"
136-
NRIA_LOGGING_CONFIGS_DIR: "${nr-sub:autogenerated_agent_dir}/directories/logging.d"
128+
NRIA_PLUGIN_DIR: "${nr-sub:autogenerated_agent_dir}/integrations.d"
129+
NRIA_LOGGING_CONFIGS_DIR: "${nr-sub:autogenerated_agent_dir}/logging.d"
137130
NRIA_STATUS_SERVER_ENABLED: true
138131
NRIA_STATUS_SERVER_PORT: "${nr-var:health_port}"
139132
NR_HOST_ID: "${nr-ac:host_id}"

agent-control/agent-type-registry/newrelic/io.opentelemetry.collector-0.1.0.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,15 @@ deployment:
8181
args: -v
8282
regex: \d+\.\d+\.\d+
8383
filesystem:
84-
files:
85-
otel-config:
86-
path: config.yaml
87-
content: |
88-
${nr-var:config}
84+
otel-config:
85+
config.yaml: |
86+
${nr-var:config}
8987
executables:
9088
- # Important to note the binary name is nrdot-collector-host matching the new nrdot binary
9189
id: nrdot-collector-host
9290
path: /usr/bin/nrdot-collector-host
9391
args: >-
94-
--config=${nr-sub:autogenerated_agent_dir}/files/config.yaml
92+
--config=${nr-sub:autogenerated_agent_dir}/otel-config/config.yaml
9593
--feature-gates=-pkg.translator.prometheus.NormalizeName
9694
env:
9795
# sets the otel-collector "env" source resource detector

0 commit comments

Comments
 (0)