Hot Reload for OpenTelemetry Collector: Step-by-Step Guide

Apply OpenTelemetry Collector config changes with systemd reload, validate before SIGHUP, and understand where OpAMP remote config fits.

Isometric illustration of an OpenTelemetry Collector configuration being reloaded

Contents

Last updated: November 25, 2026

The OpenTelemetry Collector can reload its configuration after it receives SIGHUP. That makes small pipeline changes less disruptive than a full service restart: edit the config, validate it, send the signal, and watch the Collector rebuild its pipelines.

That helps, but it is not fleet management. A local hot reload covers one process on one host. If you run Collectors across Kubernetes nodes, VMs, and instrumented services, the harder problem is keeping config versions, health, error status, and upgrades consistent. OpAMP addresses part of that management-plane problem for agents. Remote SDK management is still a proposal, not a stable OpenTelemetry capability.

This guide keeps the working hot-reload path first, then shows where remote configuration fits and what to watch during reloads.

Why hot reload is only the first step

OpenTelemetry Collector hot reload means the Collector receives a SIGHUP signal and reloads its configuration without you manually stopping and starting the service. The feature was added in the upstream Collector through the SIGHUP configuration reloading pull request.

Use it when you need to apply a known-good config change quickly:

  • adjust an exporter endpoint or header
  • tune a processor setting
  • add a filter for noisy telemetry
  • change batch or memory settings after validation

Hot reload does not remove the need for change control. It does not prove the new config is valid. It does not coordinate a rollout across hosts. It also does not guarantee that every in-flight span, metric, or log record survives the reload. Treat it as a safer local operation, not as a control plane.

For larger Collector work, keep your pipeline design and rollout process explicit. The OpenTelemetry Collector architecture guide explains receivers, processors, exporters, and extensions; our sampling, filtering, and enrichment guide covers pipeline order before you edit production configs.

How to set up hot reload for OpenTelemetry Collector

The systemd path is straightforward: add an ExecReload command that sends SIGHUP to the Collector process. The examples below use the contrib service name, otelcol-contrib.service. If you run the core distribution or a custom unit, replace the service name with yours.

Before changing the unit, find the config path the service uses:

systemctl cat otelcol-contrib.service

Look for --config, --config=file:, or an environment file that sets the config path. You will validate that file before every reload.

Edit the OpenTelemetry Collector service file

Use a systemd drop-in instead of editing the packaged unit directly:

sudo systemctl edit otelcol-contrib.service

That opens an override file. Add only the reload behavior there, so package upgrades can still update the base unit.

Configure the reload command

Add this block:

[Service]
ExecReload=/bin/kill -HUP $MAINPID

$MAINPID is the main Collector process tracked by systemd. When you run systemctl reload, systemd sends SIGHUP to that process. The Collector then reads its configuration and rebuilds the configured components.

Do not use killall or a broad process match in production. You want to signal exactly the service systemd is supervising.

Validate the config before reload

Validate the config before you signal the running Collector. The exact binary name depends on your package:

otelcol-contrib validate --config /etc/otelcol-contrib/config.yaml

If your install uses a different command, check it with:

otelcol-contrib --help

Validation catches syntax and component wiring errors before they reach the running service. It will not catch every operational problem. A valid config can still point at a blocked endpoint, overload a queue, or drop data you meant to keep.

Apply systemd changes and reload safely

Reload systemd’s view of the unit first:

sudo systemctl daemon-reload

Then run the config validation and reload together in your change procedure:

sudo otelcol-contrib validate --config /etc/otelcol-contrib/config.yaml
sudo systemctl reload otelcol-contrib.service

Watch the service logs immediately after the reload:

sudo journalctl -u otelcol-contrib.service -n 100 --no-pager
sudo systemctl status otelcol-contrib.service

You are looking for config-load errors, exporter connection failures, dropped telemetry, queue growth, and restarts. Keep the last known good config available, so rollback is a copy and reload away:

sudo cp /etc/otelcol-contrib/config.yaml.previous /etc/otelcol-contrib/config.yaml
sudo otelcol-contrib validate --config /etc/otelcol-contrib/config.yaml
sudo systemctl reload otelcol-contrib.service

What happens to in-flight telemetry during reload

A reload is not a magic in-place mutation of one setting. The Collector applies a new configuration by rebuilding the service’s component graph. That matters for telemetry already sitting inside receivers, processors, exporters, and queues.

The important rule is simple: anything held only in memory can be lost when a pipeline is rebuilt or when the process restarts. That includes exporter sending queues configured without persistent storage. If the backend is slow, the queue is growing, and you reload at the wrong time, you can lose buffered telemetry.

Use this checklist before you rely on hot reload for production changes:

  • Keep memory_limiter early in the processor list, so the Collector sheds load before downstream queues grow unchecked.
  • Enable exporter retry and queue settings deliberately; do not rely on defaults for critical telemetry.
  • Use persistent queues where the exporter supports them and the data is worth the disk tradeoff.
  • Watch Collector self-metrics before and after reloads, especially queue size, refused telemetry, send failures, and process restarts.
  • Roll out high-risk pipeline changes during a window where you can compare telemetry volume before and after.

Our OTel Collector monitoring guide covers the metrics, queues, and health probes to watch while you do this.

Kubernetes note: ConfigMap updates do not reload the Collector

Most production Collectors run on Kubernetes as a DaemonSet, Deployment, sidecar, or gateway. In that setup, the config often comes from a ConfigMap. Updating the ConfigMap is not enough.

Kubernetes updates the projected file, but the Collector process does not automatically reload because the file changed. You need one of these patterns:

  • run a rollout restart after the ConfigMap change
  • use a reloader controller that restarts pods when the ConfigMap changes
  • run a sidecar or supervisor that sends SIGHUP when the mounted config changes
  • use an agent-management workflow that can send remote configuration and report status

For a DaemonSet, the simple rollout path is:

kubectl -n observability rollout restart daemonset/otel-collector
kubectl -n observability rollout status daemonset/otel-collector

That is a restart, not a hot reload. It is often the clearer choice on Kubernetes because the orchestrator can control availability, health checks, and rollback. For the tradeoffs between node agents and sidecars, see Sidecar or Agent for OpenTelemetry.

Remote configuration with OpAMP

OpAMP is the Open Agent Management Protocol. It defines communication between an agent and a management server. The spec covers capabilities such as agent description, heartbeats, agent health, effective configuration, remote configuration, agent telemetry, and package status.

That changes the shape of the problem. Instead of SSHing to a host or applying a local config file, a management server can send configuration to agents and receive status back. For Collector fleets, that is the difference between “I sent a file” and “I know which agents accepted it, which failed, and which version is running.”

OpAMP still requires careful rollout design:

  • Agents need to opt in to remote configuration.
  • The management server needs to track accepted config, effective config, and errors.
  • Operators need version compatibility checks before rolling a Collector or supervisor upgrade.
  • A failed remote config must not leave the agent silently running an unknown state.

OpenTelemetry Collector Contrib v0.166.0 removed the deprecated reports_remote_config supervisor option. The release notes say supervisor configs that still set reports_remote_config fail to load, and that accepts_remote_config enables both the AcceptsRemoteConfig and ReportsRemoteConfig OpAMP capabilities. Check supervisor configs before upgrading managed agents.

That release-note detail is small, and it shows why config management and version management belong together. A fleet can fail before it starts if a deprecated capability name remains in the supervisor config.

SDK remote management is still emerging

Collector remote management is only one half of the story. SDK-instrumented applications have their own configuration problem: sampling, exporters, resource attributes, and instrumentation settings drift across languages and environments.

The OpenTelemetry specification repository has an open request for comments on remote SDK management. The issue describes the idea of SDK-instrumented applications and Collectors communicating with a management server so operators can see and configure both from one place. It also notes that the community would need an SDK config format if the capability moves forward.

Treat that as a proposal, not a stable feature. If you need configuration consistency today, use the language-supported mechanisms you already have: environment variables, declarative SDK configuration where supported, version-controlled deployment manifests, and CI checks. Our declarative configuration guide covers the SDK side.

Troubleshooting reload and remote-config issues

When a reload or remote-config rollout behaves badly, split the investigation into four layers.

1. Did the Collector accept the config?

Start with validation and logs:

otelcol-contrib validate --config /etc/otelcol-contrib/config.yaml
journalctl -u otelcol-contrib.service -n 200 --no-pager

Look for unknown component types, invalid processor fields, missing exporters, and authentication errors. Version mismatches are common when a config uses a contrib component that is not present in the running image.

2. Did the pipeline keep sending telemetry?

Check Collector self-metrics and backend ingest volume. Queue growth after reload usually points to an exporter problem. Refused telemetry can point to receiver binding errors, memory limiter pressure, or backend failures.

3. Did every instance receive the same config version?

On hosts, compare checksums of the config file and Collector versions. On Kubernetes, compare pod template hashes, container images, ConfigMap versions, and rollout status. With OpAMP, check accepted configuration, effective configuration, and remote-config status from the management server or supervisor logs.

4. Can you roll back without guessing?

Do not debug by editing live YAML repeatedly. Restore the last known good config, validate it, and reload or restart. Then reproduce the failure in staging with the same Collector version.

Operational checklist for Collector config management

Hot reload works best inside a boring rollout workflow. Use this as the baseline:

  1. Keep Collector configs in version control.
  2. Version the Collector image, supervisor config, and pipeline config together.
  3. Validate configs in CI and again on the host before reload.
  4. Roll out to one host, node pool, or namespace before the full fleet.
  5. Watch Collector logs, queues, send failures, refused telemetry, and process restarts.
  6. Keep persistent queues for telemetry you cannot afford to lose during backend outages or restarts.
  7. Document how to roll back the config and the Collector version.
  8. Track config version skew across hosts or pods.
  9. For OpAMP-managed agents, test capability-name changes before upgrading supervisors.
  10. For SDKs, do not assume remote management exists until the OpenTelemetry spec defines it.

This keeps the local convenience of SIGHUP without pretending it solves fleet drift on its own.

FAQ

Does the OpenTelemetry Collector support hot reload?

Yes. The Collector supports configuration reload after it receives a SIGHUP signal. With systemd, add ExecReload=/bin/kill -HUP $MAINPID and run systemctl reload otelcol-contrib.service.

What is the difference between hot reload and remote configuration?

Hot reload is local to one Collector process: an operator changes the config file and sends SIGHUP. Remote configuration uses an agent-management protocol or management server to send config to managed agents and report status back.

Does updating a Kubernetes ConfigMap reload the Collector?

No. Updating a ConfigMap changes the mounted file, but the Collector process does not automatically reload from it. Use a rollout restart, a reloader controller, or another mechanism that restarts or signals the Collector.

What happens to in-flight telemetry during Collector reload?

The Collector rebuilds its pipelines. Telemetry held in memory queues can be lost during reload or restart. Persistent exporter queues reduce that risk, but you should still validate, monitor queues, and keep rollback ready.

Is OpenTelemetry SDK remote configuration stable?

No. Remote SDK management is still an open proposal in the OpenTelemetry specification repository. Do not design a production workflow around a stable SDK remote-configuration spec yet.

About the authors
Prathamesh Sonpatki

Prathamesh Sonpatki

Prathamesh works as an evangelist at Last9, runs SRE stories - where SRE and DevOps folks share their stories, and maintains o11y.wiki - a glossary of all terms related to observability.

Last9 logo and enter key

See Last9 in action.

OpenTelemetry · Prometheus

Just update your config. Start seeing data on Last9 in seconds.

Datadog · New Relic · Others

We've got you covered. Bring over your dashboards & alerts in one click.

Built on Open Standards

100+ integrations. OTel native, works with your existing stack.