Support several v1 and v2 configuration files #3344
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 292 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.340
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #3344"
general
weight: 0.35
grcevski
Beyla can now load several configuration files, layered from lower to higher priority.
-configcan be repeated:beyla -config base.yml -config overrides.ymlBEYLA_CONFIG_PATHaccepts a:-separated list of files. These files have priority over the-configones.Mixing Beyla v1 and OBI v2 files
Beyla v1 files and OBI config v2 documents can be combined:
1. The v1 files are loaded over
DefaultConfig(), then the environment variables are applied to the result, the same as today.2. If there are v2 documents, the v1 result is converted with
AsOBI()and exported to config v2, the same way asbeyla config migratedoes. The v2 documents are then layered over it, and the result is converted back.3. As in OBI, environment variables don't override the v2 documents. To use one there, reference it explicitly with
${VAR}.4. Beyla-only settings (
grafana,topology,injector, …) keep their values from the v1 files and the environment.Restrictions and edge cases:
prometheus_export.path, keep their v1 value unless a v2 document changes the same field.Configuration refresh
Refresh without a restart now works with any combination of files. When any file changes, Beyla reloads all of them with the same loader used at startup, and applies the discovery and sampling changes.
v1, v2 and mixed configurations now all go through Beyla's
configrefresh.Refresher, instead of OBI's v2 watcher. The startup reference and the reloads are therefore built the same way.Behavior changes
BEYLA_CONFIG_PATHused to replace-config. Now both are combined.processescollection interval) instead of zero values.