Skip to main content

Getting Started

posthog

Configuring Destination Fields

❌ Traces ✅ Metrics ✅ Logs ❌ Profiles
  • POSTHOG_REGION string : Region. Select the region of your PostHog project. Data is sent to https://us.i.posthog.com or https://eu.i.posthog.com.
    • This field is required and defaults to us
  • POSTHOG_PROJECT_TOKEN string : Project Token. Use the project token from Project Settings, starting with phc_. Personal API keys (phx_) cannot be used for ingestion.
    • This field is required
    • Example: phc_...
  • POSTHOG_COMPRESSION string : Compression Type. Compression for OTLP/HTTP requests. Defaults to none.
    • This field is optional and defaults to none
Enable Logs and Application Metrics in your PostHog project before exporting. Application Metrics is in open alpha and its availability and ingestion requirements may change. Traces and profiles are not supported by this destination. Logs include OpenTelemetry severity, event timestamps, resource attributes and trace context; linking to product events or sessions requires application-specific IDs. PostHog normalizes severity text and assigns its own observed timestamp. Verify data in PostHog after setup: ingestion can return HTTP 200 even with an invalid project token.

Adding Destination to Odigos

There are two primary methods for configuring destinations in Odigos:
Using the UI
1
Use the Odigos CLI to access the UI
2
Click on Add Destination, select PostHog and follow the on-screen instructions
Using Kubernetes manifests
1
Save the YAML below to a file (e.g. posthog.yaml)
2
Apply the YAML using kubectl