Custom config override
The custom config override lets you add your own collector configuration on top of a managed agent, without giving up managed mode. Use it when the managed integrations cover almost everything you need and you want to add one processor, adjust an exporter, or wire in an extra pipeline.
This is the lighter alternative to manual mode. Manual mode hands you the whole collector YAML and turns the feature toggles off. The override keeps you in managed mode, keeps every toggle working, and applies only the small piece of YAML you add.
Where the override sits
Section titled “Where the override sits”Your override is the final layer of the agent’s configuration. The agent merges it on top of everything else, in this order:
- The base configuration.
- Whatever your managed integrations generate.
- Every receiver and processor the agent adds automatically (eBPF, PHP, PM2, database monitoring, and so on).
- Your override, last.
Because it merges last, the override wins any conflict. It is also kept when your integrations change, so you do not have to reapply it after toggling a feature.
Set an override
Section titled “Set an override”- Open the agent’s Configuration page.
- Find the Custom config override section.
- Enter your collector YAML in the editor. It is validated as you type.
- Choose Save override.
The agent picks up the change on its next check-in.
How the merge works
Section titled “How the merge works”The override is deep-merged with the configuration underneath it:
- Maps merge. Adding a new processor under
processors:leaves the existing processors untouched. - Scalars and lists are replaced, not combined. If your override sets a key that already has a value, or a list such as a pipeline’s
receivers:, your value replaces what was there. A list is never appended to, so include every element you want when you override one.
Example: stamp an attribute on all metrics
Section titled “Example: stamp an attribute on all metrics”This adds a resource processor and wires it into the metrics pipeline, so every metric carries a team attribute:
Because a list is replaced rather than merged, the processors: list you set here becomes the metrics pipeline’s processor list. Include the other processors that pipeline needs alongside resource/team.
Example: raise exporter verbosity while debugging
Section titled “Example: raise exporter verbosity while debugging”To make the debug exporter log full telemetry while you diagnose a pipeline:
Safety
Section titled “Safety”Before it applies a new configuration, the agent validates it. If your override makes the configuration invalid (most often from a wrong top-level key), the agent rejects it and keeps the last working configuration instead of restarting the collector into a broken state. The reason is reported back to your workspace, so you can see why an override was not applied without logging in to the host.