Commit b53db4b
committed
feat(jp): add JP region handling to 15 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
branch 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.
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.
* recipes/newrelic/ebpf/{awslinux,centos,ubuntu}.yml only mention EU
in a comment ('# region "US"/"EU".'); they pass NEW_RELIC_REGION
through as an env var to the eBPF Helm chart, which handles JP
routing internally. Left unchanged (functionally correct as-is).1 parent c7e90db commit b53db4b
15 files changed
Lines changed: 72 additions & 37 deletions
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: 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 114 | + | |
117 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 120 | + | |
123 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 217 | + | |
220 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
0 commit comments