A self-hosted Grafana stack (Tempo for traces, Mimir for metrics, Loki for logs) is fed either by a standard OpenTelemetry Collector or by Grafana Alloy. Both work; only the config language differs.
First do the four steps every tool shares: make the engine reachable from the Collector, copy the exporter block from Setup health, set service.version on your services and build code indexes in CI.
What do I add?
With an OpenTelemetry Collector, add the block from Setup health and append otlp/tomosu to each pipeline. The existing exporter names below are examples; keep yours.
service:
pipelines:
traces: { exporters: [otlp/tempo, otlp/tomosu] }
metrics: { exporters: [prometheusremotewrite, otlp/tomosu] }
logs: { exporters: [otlphttp/loki, otlp/tomosu] }
With Grafana Alloy, the YAML block does not paste in: add the same exporter as an Alloy component (otelcol.exporter.otlp). Setup health shows only the Collector YAML, so copy this instead:
otelcol.exporter.otlp "tomosu" {
timeout = "2s"
client {
endpoint = "tomosu:4317"
compression = "gzip"
tls {
insecure = true
}
}
sending_queue {
enabled = true
num_consumers = 2
queue_size = 100
}
retry_on_failure {
enabled = true
initial_interval = "1s"
max_interval = "2s"
max_elapsed_time = "5s"
}
}
Then add otelcol.exporter.otlp.tomosu.input to the output lists of the component that sends to Tempo, Mimir and Loki (usually otelcol.processor.batch), for example traces = [otelcol.exporter.otlp.tempo.input, otelcol.exporter.otlp.tomosu.input], and reload Alloy.
Which address and ports does Tomosu use?
A Collector or Alloy on the same host holds 4317/4318. Move Tomosu to 14317/14318 with run.otlp_grpc_port and run.otlp_http_port, and point the exporter at that port.
How do I check it works?
Check: Grafana still shows the traces in Tempo, and Setup health shows data arriving.