How to Self-Host SigNoz with Docker Compose: OpenTelemetry Observability for Your Homelab

TL;DR — SigNoz gives a homelab traces, metrics and logs in one Docker Compose stack. A 16GB mini-PC runs it fine, Node auto-instrumentation takes minutes and ntfy alerts work via a webhook. Choose it over Grafana's LGTM stack unless you already live in Prometheus.

A SigNoz Docker Compose deployment gives you traces, metrics and logs in one UI and one database, with no per-host or per-GB bill like Datadog's. It's the self-hosted observability stack I'd point a homelabber at today. It speaks OpenTelemetry natively, it runs on a single mini-PC, and it doesn't make you wire four separate projects together before you see your first trace. This guide deploys it, instruments a Node service and sends alerts to ntfy, so you hear about problems before your partner asks why Jellyfin is down.

  1. Provision a mini-PC with at least 16GB of RAM and an SSD, running Docker Engine and the Compose plugin.
  2. Clone the SigNoz repository and start the stack with Docker Compose.
  3. Lock the OTLP ingest ports to your LAN or tailnet so the internet can't write to your telemetry.
  4. Instrument a Node.js service with OpenTelemetry auto-instrumentation using environment variables only.
  5. Create an ntfy notification channel in SigNoz using the webhook type.
  6. Add alert rules for error rate, latency and missing data.

What is SigNoz, and why self-host it?

SigNoz is an open-source, OpenTelemetry-native observability platform that stores traces, metrics and logs in ClickHouse and shows them in one UI. Think of it as the Datadog experience without the invoice.

OpenTelemetry (OTel): a vendor-neutral standard and SDK set for emitting traces, metrics and logs. Instrument once and point the exporter wherever you like.

That last point is why I picked SigNoz. Your instrumentation isn't locked to SigNoz. If you outgrow it, you change one environment variable and your apps send telemetry somewhere else. For a homelab, where half the fun is swapping things out, that matters more than any feature checklist.

What hardware do you need for SigNoz in a homelab?

Plan for 16GB of RAM and an SSD. SigNoz idles at around 4 to 5GB, and most of that is ClickHouse. Spinning disks will hurt query times once you have a few weeks of logs.

I run it on a refurbished Beelink mini-PC (Ryzen 7, 32GB, 1TB NVMe). It sits under 15W most of the day and has plenty of headroom for ClickHouse merges. Don't put SigNoz on the same Synology that runs your backups. ClickHouse's background merges hammer I/O, and you'll feel it everywhere.

mini pc homelab shelf
mini pc homelab shelf

Step 1: Deploy SigNoz with Docker Compose

The official compose file works without changes. Clone it, start it, and open port 8080.

git clone -b main https://github.com/SigNoz/signoz.git
cd signoz/deploy/docker
docker compose up -d --remove-orphans
docker compose ps

The first boot takes a couple of minutes because the schema migrators run against ClickHouse before the UI comes up. If signoz keeps restarting, run docker compose logs -f schema-migrator-sync and wait. Don't restart things in a panic. I did, and it cost me 20 minutes of half-applied migrations.

Once it's up, open http://<host>:8080, create the admin account, and go straight to Settings > General to set retention. The defaults will happily fill a 256GB disk with logs. On my box, 7 days of logs, 7 days of traces and 30 days of metrics fits comfortably.

Lock down the OTLP ports

The collector publishes 4317 (gRPC) and 4318 (HTTP) on every interface, and there's no auth on them. Here's the gotcha the docs don't mention: Docker-published ports bypass ufw, so a firewall rule alone won't protect you. Bind them to a specific IP with a Compose override file (this needs Compose 2.24 or later for !override):

# signoz/deploy/docker/docker-compose.override.yaml
services:
  otel-collector:
    ports: !override
      - "192.168.1.50:4317:4317"
      - "192.168.1.50:4318:4318"
  signoz:
    ports: !override
      - "192.168.1.50:8080:8080"

Swap in your LAN or Tailscale IP. If you want the UI reachable on a hostname with TLS, put it behind Traefik. My Traefik 3 and Docker Compose reverse proxy guide covers the label setup. Don't expose the OTLP ports through it.

Step 2: Instrument a Node service with OpenTelemetry

You don't need to change any code for Node. Install the auto-instrumentation package and load it with --require, and you'll get HTTP, Express, pg, Redis and fetch spans with no further work.

npm install @opentelemetry/api @opentelemetry/auto-instrumentations-node
export OTEL_SERVICE_NAME="recipe-api"
export OTEL_EXPORTER_OTLP_ENDPOINT="http://192.168.1.50:4318"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
export OTEL_TRACES_EXPORTER="otlp"
export OTEL_METRICS_EXPORTER="otlp"
export OTEL_LOGS_EXPORTER="otlp"
export OTEL_RESOURCE_ATTRIBUTES="deployment.environment=homelab"
node --require @opentelemetry/auto-instrumentations-node/register server.js

In a Compose file, those go under environment:, and the start command becomes node --require @opentelemetry/auto-instrumentations-node/register server.js. If you use pino or winston, the bundled instrumentations forward log records over OTLP and attach the trace ID, which is the whole point. You click a slow trace and the logs from that request are right there.

When auto-instrumentation can't see something, like a background job loop, add a manual span:

import { trace } from "@opentelemetry/api";

const tracer = trace.getTracer("recipe-api");

export async function reindexRecipes(db) {
  return tracer.startActiveSpan("reindex-recipes", async (span) => {
    try {
      const rows = await db.query("SELECT id FROM recipes");
      span.setAttribute("recipes.count", rows.length);
      return rows;
    } catch (err) {
      span.recordException(err);
      throw err;
    } finally {
      span.end();
    }
  });
}

Hit a few endpoints, then open Services in SigNoz. You should see recipe-api with RED metrics (rate, errors, duration) built from your spans. If nothing appears, check that the container can reach 192.168.1.50:4318. That's the answer nine times out of ten, the classic "it works on my machine" from the wrong network namespace.

observability dashboard traces
observability dashboard traces

Step 3: Send SigNoz alerts to ntfy

SigNoz has no native ntfy channel, but its webhook channel posts Alertmanager-style JSON, and ntfy 2.11 or later can template that JSON into a readable push notification.

In SigNoz, go to Settings > Alert Channels > New Channel, choose Webhook, and use a URL like this:

https://ntfy.example.com/homelab-alerts?tpl=1&t={{.status}}:%20{{.commonLabels.alertname}}&m={{.commonAnnotations.summary}}

For a protected topic, leave the username blank and paste an ntfy access token as the password. ntfy accepts tokens over basic auth. Without tpl=1 you get a wall of raw JSON on your phone, which is technically an alert and practically useless.

Then create three alert rules and stop there:

  • Error rate: a trace-based rule on recipe-api where error spans are above 5% over 5 minutes.
  • Latency: p95 duration above 1s over 10 minutes. Ignore p99 at homelab traffic levels, because one slow request will page you.
  • No data: enable "notify on missing data" on a metric rule, so a dead container alerts you instead of going quiet.

The no-data rule is the one that catches a homelab going sideways. Services rarely throw errors when the host OOMs. They just stop reporting. For plain up/down checks on things you haven't instrumented, keep Uptime Kuma alongside it (see my Beszel vs Uptime Kuma comparison). SigNoz covers what happens inside your apps, not whether your router is alive.

SigNoz vs Grafana: which should a homelab run?

Run SigNoz if you're starting fresh and want traces, metrics and logs correlated in one tool. Stay on Grafana if you already have Prometheus exporters and dashboards you like.

The Grafana route means Prometheus or Mimir for metrics, Loki for logs and Tempo for traces, plus Grafana on top. That's four storage systems with four config formats. It's powerful, and the dashboard ecosystem is unmatched, but jumping from a trace to its logs takes deliberate wiring. SigNoz does that correlation out of the box because everything lives in one ClickHouse database.

Where SigNoz loses: community dashboards. There's no equivalent of grafana.com's library, so for node-exporter-style host graphs you'll build your own panels. It also has one big stateful dependency, so back up ClickHouse's volume properly. I push snapshots to a Hetzner Storage Box, which is cheap off-site storage that speaks rsync and BorgBackup.

Verdict

For a homelab that runs your own code, SigNoz is the best self-hosted Datadog alternative right now. Deployment is one Compose command, Node instrumentation is just environment variables, and ntfy alerting takes ten minutes once you know the template trick. Give it 16GB of RAM and an SSD, bind the OTLP ports to a private IP, and set retention on day one.

FAQs

How much RAM does SigNoz need to self-host?

Expect around 4 to 5GB at idle, mostly ClickHouse. For a homelab with a handful of instrumented services, 16GB on the host leaves room for queries and background merges. 8GB works, but you'll hit swap during heavy log searches.

Can SigNoz replace Prometheus and Grafana?

Yes, for most homelab use. The SigNoz collector can scrape Prometheus endpoints and receive OTLP metrics, so existing exporters keep working. You give up Grafana's community dashboard library and will rebuild host panels by hand.

Does SigNoz support ntfy notifications?

Not natively, but the webhook channel works. Point it at your ntfy topic URL with tpl=1 and title and message templates, which needs ntfy 2.11 or later. Use an ntfy access token as the basic-auth password for protected topics.

Is self-hosted SigNoz free?

The community edition is open source and free to self-host with no usage limits. You pay only for hardware and power, which for a mini-PC is a few pounds a month. Paid tiers add SSO and enterprise support that a homelab doesn't need.

How do I send Docker container logs to SigNoz?

Apps instrumented with OpenTelemetry send logs over OTLP directly. For everything else, run an OpenTelemetry Collector with the filelog receiver reading /var/lib/docker/containers/*/*.log and forward it to SigNoz on port 4317.

H
Hiten

Senior frontend engineer and architect: 17 years shipping complex web platforms, plus Android and iOS apps for clients. More at hiten.dev