Observability

The Observability space documents agent-observability: a Docker Compose stack that collects metrics, logs and traces from Claude Code, a self-hosted Ollama server, the host that runs Ollama, and the GitHub Actions deploys of three websites. Stefan Coetzee runs it on a home server. Four of its Grafana dashboards are public and framed on the Inside page.

Source: uncovertechtalent/agent-observability on GitHub, MIT licence.

Components

ComponentImage or sourceRole
Grafana Alloygrafana/alloy:v1.10.0Receives OTLP from Claude Code, deletes identity attributes, sends each signal to its store
Prometheusprom/prometheus:v3.5.0Metrics store, recording rules and alerts
Lokigrafana/loki:3.5.0Claude Code events and website deploy records
Tempografana/tempo:2.8.1Claude Code traces, span metrics for Prometheus
Grafanagrafana/grafana:12.1.0Dashboards, provisioned read-only from the repository
ollama-exporterrepository, PythonMetering proxy in front of Ollama
deploy-exporterrepository, PythonGitHub Actions deploy runs of the three sites
cAdvisorgcr.io/cadvisor/cadvisor:v0.49.1Per-container CPU, memory, network and disk

node_exporter and nvidia_gpu_exporter run on the Docker host, outside the compose file.

How data flows

  1. Claude Code exports metrics, events and traces over OTLP gRPC to Alloy on port 4317.
  2. Alloy deletes the account email, account IDs and organisation ID, batches the signals, and sends metrics to Prometheus, events to Loki and traces to Tempo.
  3. Tempo writes span metrics to Prometheus. The Loki ruler writes the hourly Claude Code cost to Prometheus.
  4. LLM clients call the ollama-exporter on port 11435. It passes each request to Ollama unchanged and records metrics, which Prometheus scrapes.
  5. The deploy-exporter polls the GitHub Actions API, pushes one Loki line per run, step and gate check, and serves the latest state on port 9201.
  6. Grafana reads Prometheus, Loki and Tempo. A cloud reverse proxy publishes only the public dashboard paths at https://grafana.scoetzee.de.

Start here

The website deploy gate itself is documented in the Engineering space: Deploy pipeline.

Recently updated in this space