Skip to main content
This guide provides instructions for deploying OpenLIT on TrueFoundry and integrating it with the TrueFoundry AI Gateway to export OpenTelemetry traces and metrics.

What is OpenLIT?

OpenLIT is an open-source, OpenTelemetry-native observability platform purpose-built for LLM applications. It provides zero-code auto-instrumentation, real-time monitoring, and cost tracking for LLM requests across all major providers.

Key Features of OpenLIT

  • LLM Tracing: Capture detailed traces of all LLM interactions including inputs, outputs, latency, and token usage with zero-code instrumentation
  • Cost Tracking: Track per-model, per-provider token usage and associated costs in real time
  • Metrics & Dashboards: Visualize aggregated usage, latency, and error rates across your LLM gateway

Prerequisites

Before integrating OpenLIT with TrueFoundry, ensure you have:
  1. TrueFoundry Account: Create a TrueFoundry account and follow the instructions in our Gateway Quick Start Guide
  2. Helm Repository Access: The OpenLIT Helm chart is hosted at https://openlit.github.io/helm/ — make sure to use this exact URL when configuring the Helm deployment

Architecture Overview

OpenLIT on TrueFoundry is deployed as a single Helm release that bundles three components:
All three components run in the same namespace and communicate over internal Kubernetes DNS.

Integration Steps

1

Create a ClickHouse Secret in TrueFoundry

OpenLIT uses ClickHouse as its database. Store the ClickHouse password securely using TrueFoundry Secrets before deploying.
  1. Go to Secrets in the TrueFoundry left sidebar.
  2. Create a new secret group called clickhouse.
  3. Add a key called CLICKHOUSE_PASSWORD with your desired password value.
  4. Copy the secret reference — it will look like tfy-secret://truefoundry:clickhouse:CLICKHOUSE_PASSWORD.
2

Deploy OpenLIT via Helm

  1. Go to DeploymentsNewHelm in the TrueFoundry dashboard.
  2. Select Public Helm Repository and fill in:
Make sure to use the exact Helm Repo URL above. Using an incorrect URL will result in an “Unable to query charts” error.
  1. Paste the following in the Values block:
Replace NAMESPACE in INIT_DB_HOST with your actual TrueFoundry workspace namespace (e.g. harsh-ws). You can find this in your workspace settings.
  1. In the Additional Manifests section, add the following two manifests separately by clicking + Add Additional Manifests for each:
Manifest 1 — ClickHouse Secret:
Manifest 2 — VirtualService (to expose the dashboard):
Replace the placeholders:
  • NAMESPACE → your workspace namespace (e.g. harsh-ws)
  • CLUSTER_DOMAIN → your cluster’s base domain (e.g. tfy-usea1-ctl.devtest.truefoundry.tech)
  1. Click Submit to deploy. Once all pods are running, you should see the deployment in TrueFoundry:
TrueFoundry Helm deployment showing OpenLIT successfully deployed with all pods running
Deploy order within the Helm chart is automatic — ClickHouse starts first via an init container that waits for ClickHouse to be healthy before OpenLIT starts.
3

Access the OpenLIT Dashboard

Once all pods are running, open the dashboard at:
Default login credentials:
OpenLIT dashboard login page with email and password fields
Change your password immediately after first login: Settings → Account → Change Password.
4

Configure OTEL Export in TrueFoundry

Now point the TrueFoundry AI Gateway to ship traces and metrics to your OpenLIT instance.
  1. Go to AI GatewayControlsSettings in the TrueFoundry dashboard.
TrueFoundry AI Gateway Controls Settings page
  1. Scroll down to the OTEL Config section and click the edit (✏️) button.
Otel Traces Exporter Configuration:Otel Metrics Exporter Configuration:Replace NAMESPACE with your actual workspace namespace. Click Save to apply.
TrueFoundry OTEL Metrics Exporter Configuration showing HTTP endpoint pointing to OpenLIT collector
5

Verify the Integration

  1. Make a request through the TrueFoundry AI Gateway.
  2. Navigate to the Requests tab in the OpenLIT dashboard and confirm traces are appearing.
OpenLIT Requests page showing LLM call traces exported from TrueFoundry AI Gateway
  1. Navigate to the Metrics tab to confirm aggregated metrics are also flowing in.
OpenLIT Metrics page showing aggregated LLM usage metrics from TrueFoundry AI Gateway

Internal Service DNS Reference

Once deployed, the following internal DNS names are available within the cluster:
Use the internal DNS for OTEL Config endpoints — external URLs are only needed for browser access to the dashboard.

Configuration Reference