Metrics are scraped from the admin port, logs are JSON lines on stdout, and traces are optional.
Logging
| Setting | Values |
|---|---|
observability.logging.level | debug, info (default), warn, error |
observability.logging.format | json (default) or pretty |
SPLICEDOCK_LOG_LEVEL, SPLICEDOCK_LOG_FORMAT | Environment overrides for the two settings above. |
Each JSON line has timestamp, level and message, plus fields such as request_id, tool, profile and duration_ms.
Tool-call metrics
| Metric | Type | Labels |
|---|---|---|
splicedock_tool_call_duration_seconds | histogram | upstream, tool |
splicedock_tool_call_errors_total | counter | upstream, tool, kind |
splicedock_upstream_connect_duration_seconds | histogram | upstream |
splicedock_upstream_connect_failures_total | counter | upstream |
Set server.metrics_token_env (default SPLICEDOCK_METRICS_TOKEN) and scrape with Authorization: Bearer. The repository file docs/observability.md lists every metric, a ServiceMonitor, Grafana Alloy for Loki, and sample queries.
OpenTelemetry traces
Off by default. Set observability.otlp.enabled: true and provide the collector URL in OTEL_EXPORTER_OTLP_ENDPOINT. Header values come only from OTEL_EXPORTER_OTLP_HEADERS, never from the config file. Only traces are exported; metrics stay on Prometheus.