Skip to main content
Available for Portkey Enterprise users.
Portkey Enterprise lets you store all LLM logs in MongoDB for scalable, high-performance logging in production AI apps.
Portkey is part of the MongoDB partner ecosystem.

Prerequisites

  • Portkey Enterprise account
  • MongoDB instance
  • Kubernetes cluster

Helm Charts Repo

Ready-to-use Kubernetes configs

Configuration

Add these values to your values.yaml:
MONGO_DB_CONNECTION_URL:
MONGO_DATABASE:
MONGO_COLLECTION_NAME:
MONGO_GENERATION_HOOKS_COLLECTION_NAME:

PEM File Authentication

1

Add PEM File

In resources-config.yaml, add your certificate:
data:
  document_db.pem: |
    -----BEGIN CERTIFICATE-----
    Your certificate content here
    -----END CERTIFICATE-----
2

Configure Volumes

In values.yaml:
volumes:
  - name: shared-folder
    configMap:
      name: resource-config
volumeMounts:
  - name: shared-folder
    mountPath: /etc/shared/<shared_pem>
    subPath: <shared_pem>
3

Update Connection URL

mongodb://<user>:<password>@<host>?tls=true&tlsCAFile=/etc/shared/document_db.pem&retryWrites=false

Cloud Deployment

Deploy Portkey with MongoDB on: Get started with Portkey Enterprise →