Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

2.0 KB
Raw Blame
<Frame>
  <img src="/images/vm-dashboard-1.png" />
  <img src="/images/vm-dashboard-2.png" />
</Frame>

See practical guide [AI Agents Observability with OpenTelemetry and the Victoria Stack](https://victoriametrics.com/blog/ai-agents-observability)
for detailed overview.

To send OpenTelemetry metrics, logs and traces generated by OpenLIT from your AI Application to Victoria Stack, follow the below steps.

### 1. Configure OpenTelemetry Collector

Victoria Stack requires an OpenTelemetry Collector to route metrics, logs and traces to VictoriaMetrics components.

**Install OpenTelemetry Collector (if not already running)**

For detailed installation instructions, refer to the [OpenTelemetry Collector Documentation](https://opentelemetry.io/docs/collector/installation/).

**Configure the Collector**

1. **Configure OTLP Receiver**: Set up receiver on `0.0.0.0:4318` for HTTP and `0.0.0.0:4317` for gRPC.
2. **Define Exporters**: `otlphttp` for metrics, logs and traces.
3. **Assign to Pipelines**: Route metrics, logs and traces to appropriate backends.

<Accordion title="Complete Collector Configuration">
```yaml
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318

exporters:
  otlphttp/victoriametrics:
    endpoint: "http://<VictoriaMetrics>/opentelemetry"
  otlphttp/victorialogs:
    endpoint: "http://<VictoriaLogs>/insert/opentelemetry"
  otlphttp/victoriatraces:
    endpoint: "http://<VictoriaTraces>/insert/opentelemetry"

service:
  pipelines:
    traces: { receivers: [ otlp ], exporters: [ otlphttp/victoriatraces ] }
    metrics: { receivers: [ otlp ], exporters: [ otlphttp/victoriametrics ] }
    logs: { receivers: [ otlp ], exporters: [ otlphttp/victorialogs ] }
```

See examples of configuring Victoria Stack and OpenTelemetry Collector via [docker](https://victoriametrics.com/blog/ai-agents-observability/#installation-with-docker-compose)
or [helm](https://victoriametrics.com/blog/ai-agents-observability/#installation-with-helm).
</Accordion>