SplicedockUSER DOCUMENTATIONGitHub
Contents
USER GUIDE

Watch the gateway from Grafana.

Export Prometheus metrics, JSON logs and optional OpenTelemetry traces to Grafana.

On this page

Metrics are scraped from the admin port, logs are JSON lines on stdout, and traces are optional.

Logging

SettingValues
observability.logging.leveldebug, info (default), warn, error
observability.logging.formatjson (default) or pretty
SPLICEDOCK_LOG_LEVEL, SPLICEDOCK_LOG_FORMATEnvironment 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

MetricTypeLabels
splicedock_tool_call_duration_secondshistogramupstream, tool
splicedock_tool_call_errors_totalcounterupstream, tool, kind
splicedock_upstream_connect_duration_secondshistogramupstream
splicedock_upstream_connect_failures_totalcounterupstream

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.