Skip to content

Commit 328aaa4

Browse files
Merge pull request #22089 from danielorihuela/docs/update-agent-control-old-yamls
docs: update agent control old yamls
2 parents cb919b6 + 605d980 commit 328aaa4

File tree

4 files changed

+182
-174
lines changed

4 files changed

+182
-174
lines changed

src/content/docs/new-relic-control/agent-control/configuration.mdx

Lines changed: 117 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -53,46 +53,48 @@ This example shows the two layers of configuration within a single file.
5353
global:
5454
cluster: "YOUR_CLUSTER_NAME"
5555
licenseKey: "YOUR_LICENSE_KEY"
56-
userKey: "YOUR_USER_KEY"
5756

5857
# Values related to the Agent Control's Helm chart release.
5958
# `https://github.com/newrelic/helm-charts/blob/master/charts/agent-control-bootstrap/values.yaml`
60-
agent-control-deployment:
61-
identityClientId: ""
62-
identityClientSecret: ""
63-
config:
64-
fleet_control:
65-
# Optional: Specify a fleet_id (entity guid) to automatically connect to an existing fleet.
66-
fleet_id: ""
67-
auth:
68-
# New Relic organization ID where agent will connect to.
69-
organizationId: "YOUR_ORGANIZATION_ID"
70-
71-
# Layer 2: Managed Agents' Configurations
72-
# List of managed agents that will be deployed. The key represents the name of the agent and the value holds the configuration.
73-
subAgents:
59+
agentControlDeployment:
60+
chartValues:
61+
systemIdentity:
62+
organizationId: "****"
63+
parentIdentity:
64+
clientId: "****"
65+
clientSecret: "****"
66+
config:
67+
fleet_control:
68+
# Optional: Specify a fleet_id (entity guid) to automatically connect to an existing fleet.
69+
fleet_id: "****"
70+
71+
# Layer 2: Managed Agents' Configurations
72+
# List of managed agents that will be deployed. The key represents the name of the agent and the value holds the configuration.
73+
agents:
74+
infrastructure:
75+
agent_type: newrelic/com.newrelic.infrastructure:0.1.0
76+
logs:
77+
agent_type: newrelic/io.fluentbit:0.1.0
78+
agent-operator:
79+
agent_type: com.newrelic.k8s_agent_operator:0.1.0
80+
81+
agentsConfig:
7482
infrastructure:
75-
type: newrelic/com.newrelic.infrastructure:0.1.0
76-
content:
77-
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/nri-bundle`
78-
# Recommended: check and define an explicit chart version (latest stable)
79-
chart_version: "*"
80-
chart_values:
81-
newrelic-infrastructure:
82-
enableProcessMetrics: true
83+
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/nri-bundle`
84+
# Recommended: check and define an explicit chart version (latest stable)
85+
chart_version: "*"
86+
chart_values:
87+
newrelic-infrastructure:
88+
enableProcessMetrics: true
8389
logs:
84-
type: newrelic/io.fluentbit:0.1.0
85-
content:
86-
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/newrelic-logging`
87-
# Recommended: check and define an explicit chart version (latest stable)
88-
chart_version: "*"
89-
chart_values:
90-
newrelic-logging:
91-
sendMetrics: true
90+
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/newrelic-logging`
91+
# Recommended: check and define an explicit chart version (latest stable)
92+
chart_version: "*"
93+
chart_values:
94+
newrelic-logging:
95+
sendMetrics: true
9296
agent-operator:
93-
type: com.newrelic.k8s_agent_operator:0.1.0
94-
content:
95-
chart_version: "*"
97+
chart_version: "*"
9698
```
9799
98100
</Collapser>
@@ -132,41 +134,44 @@ This example deploys Agent Control with infrastructure monitoring and Fluent Bit
132134
global:
133135
cluster: "YOUR_CLUSTER_NAME"
134136
licenseKey: "YOUR_LICENSE_KEY"
135-
userKey: "YOUR_USER_KEY"
136137
137138
# See `https://github.com/newrelic/helm-charts/blob/master/charts/agent-control-bootstrap/values.yaml`
138-
agent-control-deployment:
139-
identityClientId: ""
140-
identityClientSecret: ""
141-
config:
142-
fleet_control:
143-
# Optional
144-
# fleet_id: YOUR_FLEET_ENTITY_GUID
145-
auth:
146-
organizationId: "YOUR_ORGANIZATION_ID"
147-
subAgents:
139+
agentControlDeployment:
140+
chartValues:
141+
systemIdentity:
142+
organizationId: "****"
143+
parentIdentity:
144+
clientId: "****"
145+
clientSecret: "****"
146+
config:
147+
fleet_control:
148+
# Optional: Specify a fleet_id (entity guid) to automatically connect to an existing fleet.
149+
fleet_id: "****"
150+
agents:
151+
infrastructure:
152+
agent_type: newrelic/com.newrelic.infrastructure:0.1.0
153+
logs:
154+
agent_type: newrelic/io.fluentbit:0.1.0
155+
agent-operator:
156+
agent_type: com.newrelic.k8s_agent_operator:0.1.0
157+
agentsConfig:
148158
infrastructure:
149-
type: newrelic/com.newrelic.infrastructure:0.1.0
150-
content:
151-
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/nri-bundle`
152-
# Recommended: check and define an explicit chart version (latest stable)
153-
chart_version: "*"
154-
155-
#chart_values:
156-
# newrelic-infrastructure:
157-
# enableProcessMetrics: true
159+
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/nri-bundle`
160+
# Recommended: check and define an explicit chart version (latest stable)
161+
chart_version: "*"
162+
163+
#chart_values:
164+
# newrelic-infrastructure:
165+
# enableProcessMetrics: true
158166
logs:
159-
type: newrelic/io.fluentbit:0.1.0
160-
content:
161-
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/newrelic-logging`
162-
# Recommended: check and define an explicit chart version (latest stable)
163-
chart_version: "*"
164-
165-
#chart_values:
166-
# newrelic-logging:
167-
# sendMetrics: true
167+
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/newrelic-logging`
168+
# Recommended: check and define an explicit chart version (latest stable)
169+
chart_version: "*"
170+
171+
#chart_values:
172+
# newrelic-logging:
173+
# sendMetrics: true
168174
agent-operator:
169-
type: com.newrelic.k8s_agent_operator:0.1.0
170175
chart_version: "*"
171176
```
172177
</Collapser>
@@ -194,50 +199,53 @@ Security Best Practice: Do not store sensitive values like your license key dire
194199
licenseKey: "YOUR_LICENSE_KEY"
195200
# Values related to the Agent Control's Helm chart release.
196201
# `https://github.com/newrelic/helm-charts/blob/master/charts/agent-control-bootstrap/values.yaml`
197-
agent-control-deployment:
198-
identityClientId: ""
199-
identityClientSecret: ""
200-
config:
201-
fleet_control:
202-
# Optional: Specify a fleet_id (entity guid) to automatically connect to an existing fleet.
203-
fleet_id: ""
204-
auth:
205-
# New Relic organization ID where agent will connect to.
206-
organizationId: "YOUR_ORGANIZATION_ID"
207-
202+
agentControlDeployment:
203+
chartValues:
204+
systemIdentity:
205+
organizationId: "****"
206+
parentIdentity:
207+
clientId: "****"
208+
clientSecret: "****"
209+
config:
210+
fleet_control:
211+
# Optional: Specify a fleet_id (entity guid) to automatically connect to an existing fleet.
212+
fleet_id: "****"
213+
214+
# List of managed agents that will be deployed. The key represents the name of the agent and the value holds the configuration.
215+
agents:
216+
infrastructure:
217+
agent_type: newrelic/com.newrelic.infrastructure:0.1.0
218+
agent-operator:
219+
agent_type: newrelic/com.newrelic.k8s_agent_operator:0.1.0
220+
fluentbit:
221+
agent_type: newrelic/io.fluentbit:0.1.0
222+
prometheus:
223+
agent_type: newrelic/com.newrelic.prometheus:0.1.0
208224
# List of managed agents that will be deployed. The key represents the name of the agent and the value holds the configuration.
209-
subAgents:
225+
agentsConfig:
210226
infrastructure:
211-
type: newrelic/com.newrelic.infrastructure:0.1.0
212-
content:
213-
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/nri-bundle%60
214-
# Recommended: check and define an explicit chart version (latest stable)
215-
chart_version: "*"
227+
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/nri-bundle%60
228+
# Recommended: check and define an explicit chart version (latest stable)
229+
chart_version: "*"
216230
agent-operator:
217-
type: newrelic/com.newrelic.k8s_agent_operator:0.1.0
218-
content:
219-
chart_version: "*"
231+
chart_version: "*"
220232
fluentbit:
221-
type: newrelic/io.fluentbit:0.1.0
222-
content:
223-
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/newrelic-logging`
224-
# Recommended: check and define an explicit chart version (latest stable)
225-
chart_version: "*"
226-
chart_values:
227-
global:
228-
lowDataMode: true
233+
# Ref: `https://github.com/newrelic/helm-charts/tree/master/charts/newrelic-logging`
234+
# Recommended: check and define an explicit chart version (latest stable)
235+
chart_version: "*"
236+
chart_values:
237+
global:
238+
lowDataMode: true
229239
prometheus:
230-
type: newrelic/com.newrelic.prometheus:0.1.0
231-
content:
232-
chart_version: "*"
233-
chart_values:
234-
global:
235-
lowDataMode: true
236-
newrelic-prometheus-agent:
237-
config:
238-
kubernetes:
239-
integrations_filter:
240-
enabled: false
240+
chart_version: "*"
241+
chart_values:
242+
global:
243+
lowDataMode: true
244+
newrelic-prometheus-agent:
245+
config:
246+
kubernetes:
247+
integrations_filter:
248+
enabled: false
241249
```
242250
243251
</Collapser>
@@ -367,13 +375,9 @@ For proxy setups using HTTPS authentication with self-signed certificates, you n
367375
cluster: "YOUR_CLUSTER_NAME"
368376
licenseKey: "YOUR_LICENSE_KEY"
369377
370-
agent-control-deployment:
371-
config:
372-
agentControl:
373-
content:
374-
proxy:
375-
url: https://proxy-service:8080
376-
subAgents: {}
378+
agentControlDeployment:
379+
proxy:
380+
url: https://proxy-service:8080
377381
378382
# Mount CA certificate bundle to Agent Control
379383
extraVolumeMounts:
@@ -385,7 +389,7 @@ For proxy setups using HTTPS authentication with self-signed certificates, you n
385389
secretName: ca-certs
386390
387391
# Configure Flux components to use proxy
388-
agent-control-cd:
392+
agentControlCd:
389393
flux2:
390394
sourceController:
391395
extraEnv:
@@ -579,7 +583,7 @@ For security reasons, only explicitly enabled repositories are allowed in remote
579583
580584
# ...
581585
582-
agent-control-deployment:
586+
agentControlDeployment:
583587
config:
584588
allowedChartRepositoryUrl:
585589
- https://my-private-repository-1
@@ -602,7 +606,7 @@ chart_repository:
602606
Additionally, you need to configure Agent Control's Helm installation to use your private repository if the `agent-control-bootstrap` chart itself is in a private repository. This is separate from the configuration for managed agents. Refer to the `agent-control-bootstrap` Helm chart [values.yaml](https://github.com/newrelic/helm-charts/blob/master/charts/agent-control-bootstrap/values.yaml) to configure the `installationJob` section as follows:
603607

604608
- `chartRepositoryUrl`: The URL containing your repository location.
605-
- `name`: The chart name if using a different chart name.
609+
- `chartName`: The chart name if using a different chart name.
606610
- `repositorySecretReferenceName` and `repositoryCertificateSecretReferenceName`: The secrets required for authenticating to your repository. See the authentication section below for details.
607611

608612
### 2. Set up authentication for private repositories

src/content/docs/new-relic-control/agent-control/reinstrumentation.mdx

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -108,54 +108,57 @@ You will modify the subAgents section of your new configuration to match the old
108108
global:
109109
cluster: "test-migration"
110110
licenseKey: "****"
111-
agent-control-deployment:
112-
identityClientId: "****"
113-
identityClientSecret: "****"
114-
config:
115-
fleet_control:
116-
fleet_id: "****"
117-
auth:
118-
organizationId: "****"
119-
subAgents:
111+
agentControlDeployment:
112+
chartValues:
113+
systemIdentity:
114+
organizationId: "****"
115+
parentIdentity:
116+
clientId: "****"
117+
clientSecret: "****"
118+
config:
119+
fleet_control:
120+
fleet_id: "****"
121+
agents:
122+
logs:
123+
agent_type: newrelic/io.fluentbit:0.1.0
124+
infrastructure:
125+
agent_type: newrelic/com.newrelic.infrastructure:0.1.0
126+
prometheus:
127+
agent_type: newrelic/com.newrelic.prometheus:0.1.0
128+
agentsConfig:
120129
logs:
121-
type: newrelic/io.fluentbit:0.1.0
122-
content:
123-
chart_version: "1.25.1"
124-
chart_values:
125-
newrelic-logging:
126-
image:
127-
tag: "latest"
128-
resources:
129-
limits:
130-
cpu: 200m
131-
requests:
132-
cpu: 200m
130+
chart_version: "1.25.1"
131+
chart_values:
132+
newrelic-logging:
133+
image:
134+
tag: "latest"
135+
resources:
136+
limits:
137+
cpu: 200m
138+
requests:
139+
cpu: 200m
133140
infrastructure:
134-
type: newrelic/com.newrelic.infrastructure:0.1.0
135-
content:
136-
chart_version: "5.0.109"
137-
chart_values:
138-
newrelic-infrastructure:
139-
kubelet:
140-
tolerations:
141-
- operator: "Exists"
142-
effect: "NoSchedule"
143-
- operator: "Exists"
144-
effect: "NoExecute"
145-
- operator: "Exists"
146-
key: "MyToleration"
147-
ksm:
148-
enabled: false
149-
common:
150-
config:
151-
interval: 29s
152-
nri-kube-events:
153-
customAttributes:
154-
test_tag_label: test_tag_value
141+
chart_version: "5.0.109"
142+
chart_values:
143+
newrelic-infrastructure:
144+
kubelet:
145+
tolerations:
146+
- operator: "Exists"
147+
effect: "NoSchedule"
148+
- operator: "Exists"
149+
effect: "NoExecute"
150+
- operator: "Exists"
151+
key: "MyToleration"
152+
ksm:
153+
enabled: false
154+
common:
155+
config:
156+
interval: 29s
157+
nri-kube-events:
158+
customAttributes:
159+
test_tag_label: test_tag_value
155160
prometheus:
156-
type: newrelic/com.newrelic.prometheus:0.1.0
157-
content:
158-
chart_version: "1.15.4"
161+
chart_version: "1.15.4"
159162
```
160163

161164
### Step 3. Uninstall Your Old Agents

0 commit comments

Comments
 (0)