Vector
Vector sends logs and metrics directly to Epok. An Epok ingest key (x-api-key on logs, Authorization: Bearer on metrics) selects the workspace and project. No vendor account connection or SaaS import is involved.
Configure the agent
This configuration targets Vector 0.46.1. Export your ingest key asEPOK_INGEST_KEY in the Vector process environment, set your log path and local metrics exporter, and make the data directory writable. The shared service name joins logs and metrics. Logs and metrics both go to your ingest host over HTTPS. The prometheus_remote_write sink ignores request.headers, so it sends the key withauth.strategy: bearer; a header there is silently dropped and every metrics request answers 401.
# vector.yaml — logs + metrics to Epok (Vector 0.46+)
data_dir: /var/lib/vector
sources:
app_logs:
type: file
include: [/var/log/app/*.log]
app_metrics:
type: prometheus_scrape
endpoints: [http://localhost:9100/metrics]
transforms:
logs_service:
type: remap
inputs: [app_logs]
source: '.service = "my-app"'
metrics_service:
type: remap
inputs: [app_metrics]
source: '.tags.service = "my-app"'
sinks:
epok_logs:
type: http
inputs: [logs_service]
uri: https://ingest.epok.cloud/api/v1/ingest
method: post
compression: gzip
encoding:
codec: json
framing:
method: newline_delimited
request:
headers:
x-api-key: "${EPOK_INGEST_KEY}"
batch:
max_events: 10000 # at or under Epok's 10,000 entries per batch
healthcheck:
enabled: false
epok_metrics:
type: prometheus_remote_write
inputs: [metrics_service]
endpoint: https://ingest.epok.cloud/api/v1/write
# This sink ignores request.headers: the key must go in auth.
auth:
strategy: bearer
token: "${EPOK_INGEST_KEY}"
healthcheck:
enabled: falseSupported intake
POST /api/v1/ingest: newline-delimited JSON logs. Keep the JSON codec and newline framing together.POST /api/v1/write: Prometheus remote write metrics, encoded by Vector as snappy protobuf.
Log message, timestamp and service fields are preserved; gauges retain their values and labels. The configured sinks disable startup health probes; delivery is verified by stored data. Missing keys return 401; unknown keys or insufficient ingest scope return 403, and quotas return 429.