Skip to main content
These settings control the telemetry your self-hosted data plane sends to Braintrust’s control plane, and the service token that enables data retention.

Enable or disable telemetry

Braintrust can send the following types of telemetry from your self-hosted data plane to Braintrust’s control plane: By default, status, metrics, and usage are enabled. You can change the defaults as follows:
Add the monitoring_telemetry variable to your variables.tf file, and include the types of telemetry you want to send in the validation condition as a comma-separated list:
Braintrust also has access to endpoints reporting metrics about the backfill and compaction status of Brainstore segments. This is metadata only, no customer data. To disable these endpoints, set the DISABLE_SYSADMIN_TELEMETRY environment variable to true.
If you disable telemetry, Braintrust’s ability to proactively monitor your deployment and diagnose issues will be significantly limited. Before disabling, consider the impact on support response times.

Data retention

Data retention requires a service token so the data plane can query object metadata and look up retention policies configured in your organization. Braintrust automatically provisions this token when you configure your self-hosted data plane URL in organization settings. It is created with read-only permissions on projects and stored securely in your data plane. To verify or refresh the token, go to Settings > Service tokens. If the token doesn’t exist, click Create. To rotate it, click Refresh — the data plane will start using the new token automatically.
Before configuring retention, review your cloud provider’s bucket retention policies. See Cloud provider retention policies for details.