Table of Contents

Forward telemetry to another OTLP endpoint

Flare can send a copy of everything it accepts to one or more other OTLP/HTTP endpoints, for example to run Flare next to another backend while you migrate, or to feed a second consumer.

Add a target in the dashboard

Open Settings > Workspace > Telemetry export (admins only) and choose New target. Give it a name and the endpoint's base URL, optionally add headers (one Name: value per line), pick the signals, services and ingest keys to forward, and save. Flare.Ingest re-reads saved targets every 30 seconds, so a new, edited, disabled or deleted target takes effect without a restart.

Header values are hidden once saved. When you edit a target, leave a hidden value as it is to keep it, or type a new value to replace it.

The table shows each target's live status, refreshed every few seconds: requests pending in its queue, sent and failed counts, and the last error. Targets defined in configuration appear below the saved ones, marked From configuration; they are read-only here.

Send to Grafana Cloud

When you create a target, choose Grafana Cloud under Destination and fill in three values from your stack's OpenTelemetry tile:

  • Region: the gateway region, such as prod-us-central-0. Pasting the whole endpoint URL also works.
  • Instance ID: the stack's numeric ID.
  • Access policy token: needs the logs:write, traces:write and metrics:write scopes.

Flare builds the endpoint (https://otlp-gateway-<region>.grafana.net/otlp) and the Authorization: Basic header for you. What it saves is an ordinary target, so editing it later shows the plain endpoint and a hidden header.

Test the connection

Test connection in the target dialog sends an empty OTLP logs export to <endpoint>/v1/logs with the headers you entered, without saving anything and without storing any data at the destination. It reports the HTTP status, or a reason for failure such as rejected credentials (401/403), a wrong path (404) or an unreachable host. When you test a saved target, hidden header values are used as stored.

The test runs from Flare.Api, while delivery runs from Flare.Ingest. For a private destination, set Outbound__Allow (see below) on Flare.Api as well as Flare.Ingest.

Or configure a target in files

Targets can also be configuration on Flare.Ingest (appsettings or environment variables), which suits infrastructure-as-code. Saved targets run alongside them. Using environment variables, which map onto Forwarding:Targets:<index>:<setting>:

services:
  ingest:
    environment:
      Forwarding__Targets__0__Name: second-backend
      Forwarding__Targets__0__Endpoint: https://collector.example.com:4318
      Forwarding__Targets__0__Headers__Authorization: Bearer <token>
      Forwarding__Targets__0__Signals__0: Logs
      Forwarding__Targets__0__Services__0: checkout

Flare appends /v1/logs, /v1/traces or /v1/metrics to Endpoint and sends protobuf, gzip-compressed.

Setting Default Meaning
Name required Unique label used in log messages.
Endpoint required Base URL of the receiving OTLP/HTTP endpoint (http or https).
Headers none Extra request headers, such as Authorization.
Signals all Any of Logs, Traces, Metrics.
Services all Only forward these service.name values; other services' data is removed from the copy.
IngestKeyIds any Only forward requests authenticated with these ingest keys (key ids).
Gzip true Compress request bodies.
Timeout 00:00:10 Per-request timeout.
QueueCapacity 10000 Requests the target's Redis queue keeps; past this the oldest are trimmed.
MaxAttempts 3 Immediate delivery attempts for network errors, 429 and 5xx before the request waits to be retried.

Three settings apply to every target and sit directly under Forwarding:

Setting Default Meaning
Forwarding__MaxAge 06:00:00 A queued request older than this is dropped instead of delivered.
Forwarding__ReclaimIdle 00:00:30 How long an undelivered request waits before it is retried.
Forwarding__RefreshInterval 00:00:30 How often saved targets are re-read.

An invalid target in configuration (bad URL, duplicate name) stops Flare.Ingest at startup.

Manage targets from the CLI or Terraform

Saved targets can be managed without the dashboard. Both need an Admin.

flare forwarding create grafana --endpoint https://otlp.example.com \
  --header 'Authorization=Bearer <token>' --signal logs --signal traces
flare forwarding list
flare forwarding update <id> --service checkout
flare forwarding status
flare forwarding delete <id> --yes

update changes only the options you pass; --header sets one header and keeps the others, --clear-headers removes them all, and --all-signals, --all-services and --any-ingest-key clear those filters. Header values are masked in list and never shown again.

With the Flare Terraform / OpenTofu provider:

resource "flare_forwarding_target" "grafana" {
  name     = "grafana"
  endpoint = "https://otlp.example.com"
  headers  = { Authorization = "Bearer ${var.grafana_token}" }
  signals  = ["Logs", "Traces"]
}

Header values are write-only: Flare never returns them, so a change made outside Terraform is not detected. Targets in Forwarding:Targets configuration are separate and not managed this way.

Private destinations are blocked by default

Flare refuses to send to loopback, private (RFC 1918), link-local (169.254.169.254) and other non-public addresses, so a target cannot be pointed at the host's own network. To send to an internal receiver, allow it on Flare.Ingest:

Outbound__Allow__0=10.20.0.0/16
Outbound__Allow__1=*.corp.local

Each entry is an IP, a CIDR, or a host name (exact or *.suffix). Outbound__BlockPrivateNetworks=false disables the check. The same settings apply to alert channels on Flare.Api and Flare.AlertWorker. Design notes: ADR-0201.

What to expect

  • Only requests Flare accepted are forwarded. Rejected ones (over an ingest key's limit, service not allowed, malformed) are not.
  • Each target has its own queue in Redis. A request is removed from it once the destination accepts it (or answers with a non-retryable 4xx such as 401, which is counted as failed and dropped). A network error, 429 or 5xx leaves the request queued; it is retried after ReclaimIdle, until it is older than MaxAge. The queue survives a restart of Flare.Ingest, and several Flare.Ingest replicas share the work.
  • Delivery is at least once: if a request timed out after the destination had in fact stored it, the retry duplicates it. If the destination is down for longer than MaxAge, or the queue passes QueueCapacity, the oldest requests are dropped. Flare's own copy is never affected, and a slow destination never slows ingest.
  • Deleting or disabling a target discards its queue and counters.
  • Profiles are not forwarded.
  • A target with ingest keys receives nothing from requests that carry no ingest key.

Design notes: ADR-0155, ADR-0157.

Last updated: