Skip to main content
SmithDB components expose application metrics and can export logs and traces to your existing observability stack. Set this up after you deploy SmithDB services and before you tune capacity or migrate historical data. It provides the signals to validate those changes and investigate failures.

Metrics

Each SmithDB component exposes application metrics at the fixed /metrics path on its HTTP port. Configure your monitoring stack to discover the pods by adding scrape annotations to each component:
On LangSmith 0.16, set the migration annotations under smithdb.migration.deployment.annotations.With smithdb.topology: unified, annotate the unified pod and scrape port 8060 only:
These are Prometheus-style annotations. Providers with their own discovery format, such as Datadog, need that format applied to the same ports and path. For which metrics to watch and how to read them, see Essential SmithDB metrics.

Histograms and export sets

Collect histograms with their buckets. Without the buckets, you cannot calculate percentiles, such as the p95 query latency. The Helm chart sets each SmithDB component to export the critical set of metrics. This set includes all SmithDB metrics that the recommended alerts use. To export all metrics, set SMITHDB_<COMPONENT>__METRICS__MODE=all in smithdb.commonEnv or in the extraEnv of one component. Do not set the same variable in both places, because the chart then fails to render.

LangSmith ingestion metrics

The LangSmith ingestion pipeline sends all runs to SmithDB, and SmithDB problems often show there first. Collect these metrics together with the SmithDB metrics: Both services expose these metrics at /metrics. For the other LangSmith services, see Export LangSmith telemetry. The dashboard collection examples do not collect all of these metrics. Add the missing metrics to your collection configuration.

Infrastructure metrics

Monitor the PostgreSQL metastore, Redis, Kubernetes, and cloud services with your existing infrastructure monitoring. For managed Redis and PostgreSQL, use the metrics of your cloud provider.

Logs and traces

SmithDB uses the chart-level OpenTelemetry tracing configuration described in Export LangSmith telemetry to your observability backend, with one difference: SmithDB exports over OTLP gRPC only. Set config.observability.tracing.exporter to grpc. With http, SmithDB export stays disabled and SmithDB logs remain console-only. The chart adds SmithDB pod and container names as OpenTelemetry resource attributes automatically. To customize SmithDB log filtering, set RUST_LOG for all SmithDB workloads through smithdb.commonEnv:
Confirm the collector is reachable from the LangSmith namespace, apply the chart, then confirm telemetry arrives. To set up or tune a collector, see Configure your collector for LangSmith telemetry.