Commit 1fa0bda
committed
feat(jp): add JP region handling to 18 recipes with EU-specific logic
Some recipes contained region-specific endpoint logic covering US, EU,
and staging but did not have a JP branch. This adds JP as a first-class
option in the same conditional blocks and normalises the ordering to
staging → EU → JP → US (default).
Two patterns of missing JP handling were addressed:
1) NerdGraph API URL selection (3 files, 'grep -i eu' shell pattern):
recipes/newrelic/apm/java/linux.yml
recipes/newrelic/infrastructure/alerts/golden.yml (2 blocks)
recipes/newrelic/infrastructure/cloud/aws-linux.yml
Added a 'grep -i jp' branch pointing at
'https://api.jp.newrelic.com' alongside the existing EU branch.
2) OTLP endpoint selection (12 nrdot files, '$NEW_RELIC_REGION = "EU"'
shell-check pattern):
recipes/newrelic/infrastructure/nrdot/elasticsearch-otel/{debian,rhel}.yml
recipes/newrelic/infrastructure/nrdot/haproxy/{debian,rhel}.yml
recipes/newrelic/infrastructure/nrdot/kafka/{debian,rhel}.yml
recipes/newrelic/infrastructure/nrdot/nginx/{debian,rhel}.yml
recipes/newrelic/infrastructure/nrdot/nginx-plus/{debian,rhel}.yml
recipes/newrelic/infrastructure/nrdot/rabbitmq/{debian,rhel}.yml
Added a JP elif branch pointing at 'https://otlp.jp.nr-data.net[:PORT]'
between the existing 'staging' and default 'else' branches, matching
the JP endpoint convention (note: no '01' suffix, unlike EU's 'eu01').
nrdot/ibm-mq/{debian,rhel}.yml already handled JP and is unchanged.
Plus a docstring-only correction (3 files):
3) eBPF chart config comment (3 files):
recipes/newrelic/ebpf/awslinux.yml
recipes/newrelic/ebpf/centos.yml
recipes/newrelic/ebpf/ubuntu.yml
Updated the comment above 'region: "${NEW_RELIC_REGION}"' from
'# region "US"/"EU".' to '# region "US"/"EU"/"JP".' — no
functional change. These recipes pass NEW_RELIC_REGION through as
an env var to the eBPF Helm chart, which handles JP routing
internally; only the comment implied JP wasn't supported.
The full recipes/ tree was audited for other JP gaps. Files that only
handle a 'staging' special case (APM PHP awslinux/debian/redhat,
APM dotNet linux-systemd/windows-iis, Infrastructure awslinux/
centos_rhel/darwin/debian/suse/ubuntu/windows, Kubernetes, APM Node
linux) do NOT need JP additions — they don't handle EU either;
regional routing (US/EU/JP) is done via the agent's own license-key
prefix detection or by the downstream helm chart.1 parent c7e90db commit 1fa0bda
18 files changed
Lines changed: 75 additions & 40 deletions
File tree
- recipes/newrelic
- apm/java
- ebpf
- infrastructure
- alerts
- cloud
- nrdot
- elasticsearch-otel
- haproxy
- kafka
- nginx-plus
- nginx
- rabbitmq
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
511 | 514 | | |
512 | 515 | | |
513 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 161 | + | |
164 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 171 | + | |
174 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 178 | + | |
181 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 183 | + | |
186 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
0 commit comments