Portkey AI Gateway
1. Unified Apica Destination Details
2. Configuration for Self-Hosted Portkey Gateway
# Enable the OTel Push plugin
export OTEL_PUSH_ENABLED=true
# Point to your Apica Ascent endpoint
export OTEL_ENDPOINT="https://<your-ascent-instance>/v1/otel"
# Set the protocol to Protobuf for efficiency
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
# Add the required Apica Authorization header
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <Apica-Ingest-Token>"
# Optional: Set a service name to identify this gateway in Apica dashboards
export OTEL_RESOURCE_ATTRIBUTES="service.name=portkey-gateway,env=prod"3. Configuration for Portkey Cloud (Hosted)
4. Setting Up the Pipeline in Apica Flow
5. Key Implementation Notes
Specific SQL Query Calculating "Token Burn Rate"
1. The Token Burn Query
2. Dashboard Visualization Setup
3. Creating a Real-Time "Burn Alert"
4. Key Attributes Captured from Portkey
Last updated
Was this helpful?