Skip to main content
Version: 3.6.2-rc.3

Export telemetry

The platform can send copies of its metrics, alerts, traces and logs to a monitoring backend you run. You switch each signal on separately, and nothing leaves the cluster until you do. The platform keeps its own copy either way, as set in Choose what telemetry the platform keeps.

To send audit events, or to send logs to Splunk, see Export logs. The two features send independently, so you can use both.

What each signal contains​

None of the signals is anonymized. Records leave the cluster as they were produced, so decide per signal what you are willing to send.

SignalPersonal data by designPersonal data possibleRisk
MetricsNoResource namesLow
AlertsNoResource namesLow
TracesPseudonymous user, API key and tenant IDsURL paths and query stringsMedium
LogsPseudonymous user, API key and tenant IDsAnything a workload writes to its outputHigh

Pseudonymous IDs are internal identifiers, not names or email addresses. Anyone with access to your identity provider can map them back to a person, so treat them as personal data.

Metrics​

Numeric time series about the cluster and the platform: resource usage, request rates, latencies, GPU use, and the health of databases and the service mesh. Every series the cluster's Prometheus collects is sent.

Labels identify Kubernetes objects, such as namespaces, pods, nodes and model deployments. The platform's own metrics carry no user or tenant identifiers. Names you choose for your resources appear as label values, so a deployment named after a person sends that name.

Alerts​

Alerts that fire in the cluster, with their labels and descriptions. They contain the same kind of data as metrics.

Traces​

One record per step of a request as it moves between platform services: which service handled it, how long it took, and whether it failed. Prompt and answer content is never part of a trace.

Each authenticated request carries the caller's user ID, API key ID and tenant ID. Records also contain request URLs, including query strings, and the text of database queries without their parameter values. Metric scraping and telemetry traffic are left out.

Logs​

The output of every container in the cluster, except the monitoring, kube-system and argocd namespaces and the service mesh proxies. This includes workloads your tenants deploy and third-party components such as the identity provider and the databases.

Three kinds of records are never sent: audit events, captured prompt and answer content, and per-request mesh access logs. Authorization headers are removed. The rest of each record is sent unchanged.

The platform cannot guarantee what other software writes to its logs. Expect pseudonymous IDs on request logs, names of uploaded files, and usernames, email addresses and client IP addresses from sign-in events. A model server with request logging enabled also logs prompts. If logs must not leave the cluster with personal data in them, keep this signal off.

Before you start​

Each signal you enable needs an endpoint on your backend that accepts it:

SignalProtocolExample URL
MetricsPrometheus remote writehttps://metrics.example.com/api/v1/receive
AlertsAlertmanager API v2https://alertmanager.example.com
TracesOTLP over HTTPhttps://otel.example.com/v1/traces
LogsOTLP over HTTPhttps://otel.example.com/v1/logs

Give traces and logs the full URL including the path. The platform sends to it as written. For alerts, give the base URL and Prometheus adds /api/v2/alerts.

An HTTPS endpoint must present a certificate from a publicly trusted CA. Telemetry export has no setting for a private CA, and the trusted certificate authorities you give the platform don't apply to it.

Metrics and alerts are sent by the Prometheus the platform deploys. If the platform uses your cluster's own Prometheus instead (monitoring.prometheus.deploy: false), the metrics and alerts settings have no effect. Configure remote write and the extra Alertmanager in that Prometheus.

Credentials​

All four signals share one basic-auth credential. Create a Secret holding the username and password in the monitoring namespace, and name it in basicAuth.secretName:

kubectl -n monitoring create secret generic telemetry-export-auth \
--from-literal=username=<username> \
--from-literal=password=<password>

If your Secret stores them under other keys, set basicAuth.usernameKey and basicAuth.passwordKey. Leave secretName empty to send without authentication.

warning

Create the Secret before you enable logs or traces export. If the named Secret doesn't exist, the collector that sends logs and traces doesn't start. The same collector stores the platform's own traces and logs and sends logs to Splunk, so all of these stop until the Secret exists.

Each signal except alerts also takes headers, extra HTTP headers on every request, such as a tenant header your backend expects. Header values are stored in plain text in the platform's configuration, so don't put tokens in them. If your backend needs a credential other than basic auth, contact us.

To rotate the credential, update the Secret. Prometheus picks up the new value by itself. The collector that sends logs and traces reads it only at startup, so restart it:

kubectl -n monitoring rollout restart deploy otel-collector-gateway-collector

Configuration​

Enable a signal by setting enabled and its url under monitoring.telemetryExport. This example sends metrics, alerts and a tenth of all traces, and keeps logs in the cluster:

monitoring:
telemetryExport:
labels:
cluster: acme-prod
site: dc-east
basicAuth:
secretName: telemetry-export-auth
metrics:
enabled: true
url: https://metrics.example.com/api/v1/receive
headers:
X-Scope-OrgID: acme
alerts:
enabled: true
url: https://alertmanager.example.com
traces:
enabled: true
url: https://otel.example.com/v1/traces
samplingPercentage: 10
logs:
enabled: false

Labels​

Labels say where the data came from, which you need once several clusters send to the same backend. The platform adds each label to every metric series and alert, and to logs and traces as a resource attribute. A series that already has a label of the same name keeps its own value.

Trace sampling​

At the default samplingPercentage: 100 every trace is sent. Below 100, the platform sends that share of traces, plus every trace that has an error or takes longer than slowThresholdMs (5000 by default). A trace is sent or dropped whole, never in part.

Check it's working​

Look for the data in your backend first. If nothing arrives, the sender's logs say why. For logs and traces:

kubectl -n monitoring logs deploy/otel-collector-gateway-collector | grep telemetry_export

For metrics and alerts:

kubectl -n monitoring logs statefulset/prometheus-prometheus-kube-prometheus-prometheus -c prometheus \
| grep -E 'remote|notifier'

Authentication failures show up there as 401 or 403 responses, and certificate problems as TLS errors.

Delivery​

When your backend can't be reached, each signal waits and retries:

  • Logs and traces queue on disk and are sent once the backend is back. The queue survives a collector restart but not the pod being replaced, as on a node drain or the restart in Credentials. A long outage fills it, and data that doesn't fit is lost.
  • Prometheus resends metrics it has not delivered yet. A long outage leaves a gap in the exported metrics.
  • Prometheus keeps resending active alerts, so an alert still firing arrives once the backend is back. An alert that fired and resolved during the outage may not arrive.