Overview
While Portkey leverages Clickhouse as the primary Analytics Store for the Control Panel by default, enterprise customers can integrate Portkey’s analytics data with their existing data infrastructure through OpenTelemetry. This export focuses on aggregated metrics and analytics data such as:- Request counts and latency metrics
- Token usage statistics
- Cost tracking data
- Error rates and status codes
For exporting complete request/response logs with full prompt and completion content, see Complete Logs Export.
Configuration
Portkey supports pushing your analytics data to an OTel compatible endpoint. The following environment variables are needed for pushing to OTel:Environment Variables
| Variable | Required | Description |
|---|---|---|
OTEL_PUSH_ENABLED | Yes | Set to true to enable analytics export |
OTEL_ENDPOINT | Yes | The OTLP endpoint URL |
OTEL_EXPORTER_OTLP_HEADERS | No | Comma-separated headers in key=value format |
Resource Attributes
You can configure arbitrary resource attributes of the OTel logs by setting a comma-separated value forOTEL_RESOURCE_ATTRIBUTES:
| Variable | Description |
|---|---|
OTEL_SERVICE_NAME | Service name for the telemetry data |
OTEL_RESOURCE_ATTRIBUTES | Comma-separated key=value pairs for additional resource attributes |
Integration Options
Enterprise customers commonly use these analytics exports with:- Datadog: Monitor and analyze your AI operations alongside other application metrics
- AWS S3: Store analytics data for long-term retention and analysis
- Prometheus/Grafana: Build custom dashboards and alerting
- Splunk: Integrate with existing SIEM infrastructure
- Other OTel-compatible systems: Any system that can ingest OpenTelemetry data
Use Cases
This feature enables:- Centralized observability across your entire tech stack
- Long-term storage of analytics data
- Custom analytics dashboards in your preferred tools
- Integration with existing alerting systems
- Compliance and audit trail requirements
Getting Support
For additional assistance with setting up analytics data export:- Join our Discord community
- Email us at [email protected]

