Commit da7e71c
committed
feat(jp): add JP region handling to 15 recipes with EU-specific logic
Per Takuya Azuma's Slack thread reporting that the JP rollout in OIL
missed recipe files with region-specific endpoint logic:
https://newrelic.slack.com/archives/C0A3CUFQHGC/p1783495861297169
Two patterns of missing JP handling were audited across all recipes:
1) NerdGraph API URL selection (3 files, uses 'grep -i eu'):
recipes/newrelic/apm/java/linux.yml
recipes/newrelic/infrastructure/alerts/golden.yml (2 blocks)
recipes/newrelic/infrastructure/cloud/aws-linux.yml
Add a parallel 'grep -i jp' branch pointing at
'https://api.jp.newrelic.com' immediately after the EU branch.
This finishes off the scope originally captured (but never
delivered) in NR-560720's 'Recipe Files — Explicit EU Region
Conditionals (3 files)' section.
2) OTLP endpoint selection (12 files, uses '= "EU"'):
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
Add a parallel 'JP' elif branch pointing at
'https://otlp.jp.nr-data.net[:PORT]' between the existing 'staging'
elif and the default 'else' branch. Matches the precedent set in
#1386 (nrdot/ibm-mq) by Shashank Reddy on 2026-06-30.
Endpoint URLs cross-checked against the internal JP endpoint mapping
table:
api.jp.newrelic.com — NerdGraph API
otlp.jp.nr-data.net — OTLP (note: no '01' suffix, unlike EU)
otlp.jp.nr-data.net:4317 — OTLP gRPC
otlp.jp.nr-data.net:4318 — OTLP HTTP
False positive noted (no change made): recipes/newrelic/ebpf/{awslinux,
centos,ubuntu}.yml pass $NEW_RELIC_REGION through as an env var to the
eBPF Helm chart, which handles region routing internally. Only a
descriptive comment ('# region "US"/"EU".') hints at legacy scope;
functionally these recipes already work for JP once the eBPF chart
supports it.1 parent c7e90db commit da7e71c
15 files changed
Lines changed: 36 additions & 1 deletion
File tree
- recipes/newrelic
- apm/java
- 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 | |
|---|---|---|---|
| |||
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: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
0 commit comments