Commit 122af26
new fix for prometheus ports (#670)
* Properly fix unique Prometheus ports per service (redo of #649)
PR #649 fixed port conflicts only in the bazel run scripts, meaning the
problem persisted when services were launched directly via their bazel
targets. This commit fixes it at the source by overriding
metrics_prometheus_port in each service's config class, so the correct
port is used regardless of how the service is started.
Port assignments (core stays at the base default of 9464):
- worker: 9465
- delayed_job_monitor: 9466
- backend_listener: 9467
- backend_worker: 9468
Kubernetes manifests are updated to match these new defaults.
Also fixes a pre-existing port name collision: the oauth2-proxy sidecar
declared its metrics port as "metrics", conflicting with the OSMO
service container port of the same name in the same pod. Renamed to
"oauth2-metrics" across all three chart sidecar helpers (service,
router, web-ui).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Revert run script port overrides made redundant by previous commit
The --metrics_prometheus_port flags added to the bazel run scripts by
#649 are now superseded by the per-service config class defaults. Remove
them to keep the scripts clean.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add oauth2-metrics endpoint to service PodMonitor
The oauth2-proxy sidecar port was renamed from "metrics" to
"oauth2-metrics" to avoid a pod-level port name collision. Add a
corresponding PodMonitor endpoint so Prometheus continues scraping
oauth2-proxy metrics when the sidecar is enabled.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix pylint missing-class-docstring in WorkerConfig
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 00b527c commit 122af26
File tree
13 files changed
+36
-14
lines changed- deployments/charts
- backend-operator/templates
- router/templates
- service/templates
- web-ui/templates
- run
- src
- operator/utils
- service
- delayed_job_monitor
- worker
13 files changed
+36
-14
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
136 | | - | |
| 134 | + | |
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
| 318 | + | |
320 | 319 | | |
321 | 320 | | |
322 | 321 | | |
| |||
388 | 387 | | |
389 | 388 | | |
390 | 389 | | |
391 | | - | |
392 | | - | |
| 390 | + | |
393 | 391 | | |
394 | 392 | | |
395 | 393 | | |
| |||
0 commit comments