|
| 1 | +--- |
| 2 | +title: Analytics Logs Export |
| 3 | +--- |
| 4 | + |
| 5 | + Portkey supports exporting your Analytics data to OpenTelemetry (OTEL) compatible collectors, allowing you to integrate Portkey's analytics with your existing observability infrastructure. |
| 6 | + |
| 7 | + ## Overview |
| 8 | + |
| 9 | + 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. |
| 10 | + |
| 11 | + ## Configuration |
| 12 | + |
| 13 | + Portkey supports pushing your analytics data to an OTEL compatible endpoint. The following environment variables are needed for pushing to OTEL: |
| 14 | + |
| 15 | + ```yaml |
| 16 | + OTEL_PUSH_ENABLED: true |
| 17 | + OTEL_ENDPOINT: http://localhost:4318 |
| 18 | + ``` |
| 19 | +
|
| 20 | + Additionally, you can configure arbitrary resource attributes of the OTEL logs by setting a comma-separated value for `OTEL_RESOURCE_ATTRIBUTES`: |
| 21 | + |
| 22 | + ``` |
| 23 | + OTEL_RESOURCE_ATTRIBUTES: ApplicationShortName=gateway,AssetId=12323,deployment.service=production |
| 24 | + ``` |
| 25 | +
|
| 26 | + ## Integration Options |
| 27 | +
|
| 28 | + Enterprise customers commonly use these analytics exports with: |
| 29 | +
|
| 30 | + - **Datadog**: Monitor and analyze your AI operations alongside other application metrics |
| 31 | + - **AWS S3**: Store analytics data for long-term retention and analysis |
| 32 | + - **Other OTEL-compatible systems**: Any system that can ingest OpenTelemetry data can be used with this feature |
| 33 | +
|
| 34 | + ## Use Cases |
| 35 | +
|
| 36 | + This feature enables: |
| 37 | +
|
| 38 | + - Centralized observability across your entire tech stack |
| 39 | + - Long-term storage of analytics data |
| 40 | + - Custom analytics dashboards in your preferred tools |
| 41 | + - Integration with existing alerting systems |
| 42 | +
|
| 43 | + ## Getting Support |
| 44 | +
|
| 45 | + For additional assistance with setting up analytics data export: |
| 46 | +
|
| 47 | + - Join our [Discord community](https://portkey.sh/reddit-discord) |
| 48 | + |
| 49 | +
|
| 50 | + Our team can help you with best practices for configuring your OTEL collectors and integrating with your existing systems. |
0 commit comments