Send traces to Tempo and expose metrics to Prometheus
Point the OTLP exporter at Tempo instead of Jaeger. Enable the built-in /metrics endpoint by setting METRICS_SECRET: without it LibreChat answers 401 and exposes nothing. Prometheus scrapes it with a Bearer token from a dedicated job, since annotation-based discovery cannot carry credentials. A Kubernetes Secret is namespaced, so the same value must also exist as `librechat-metrics` in the observability namespace — one side verifies the token, the other presents it. secret.example.yaml documents the pairing; the real secret.yaml stays gitignored. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -30,5 +30,5 @@ data:
|
||||
DEBUG_LOGGING: "false"
|
||||
OTEL_TRACING_ENABLED: "true"
|
||||
OTEL_SERVICE_NAME: "librechat"
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: "http://jaeger.observability.svc.cluster.local:4318"
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: "http://tempo.observability.svc.cluster.local:4318"
|
||||
OTEL_TRACES_EXPORTER: "otlp"
|
||||
|
||||
Reference in New Issue
Block a user