epok
View as Markdown

OpenTelemetry Collector

Use otel/opentelemetry-collector-contrib:0.123.0. Set EPOK_INGEST_KEY in the collector process environment. Applications send OTLP to the collector (gRPC on port 4317, HTTP on port 4318); the collector exports logs, traces and metrics to Epok over OTLP/HTTP (protobuf, gzip) with the key in the x-api-key header. gzip and zstd are accepted on all three paths. This is the same configuration the app shows under Connect.

Configuration

yaml
# otel-collector-config.yml — logs + traces + metrics to Epok
# Run: otelcol-contrib --config otel-collector-config.yml
# Point your apps at this collector: OTLP gRPC :4317 or HTTP :4318.

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318

processors:
  batch:
    send_batch_max_size: 10000   # at or under Epok's 10,000 entries per batch

exporters:
  otlphttp/epok:
    # Sends to https://ingest.epok.cloud/v1/logs, /v1/traces and /v1/metrics
    endpoint: https://ingest.epok.cloud
    compression: gzip   # gzip and zstd are accepted on logs, traces and metrics
    headers:
      x-api-key: "${env:EPOK_INGEST_KEY}"

service:
  pipelines:
    logs:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp/epok]
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp/epok]
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp/epok]

Keep your ingest key private. Missing keys return 401; unknown keys return 403. A successful HTTP response alone is not proof of stored data.

Vector JSON logsAll install guides