Telemetry Conduit
Telemetry Conduit enables you to export collected metrics and logs to external observability platforms and security information and event management (SIEM) systems. You can integrate Crusoe infrastructure data into your existing Grafana, Datadog, or Splunk dashboards without managing separate data pipelines.
Telemetry Conduit is available for Crusoe Virtual Machines (VMs) and Crusoe Managed Kubernetes (CMK) clusters, and offers two ways to export data:
- Scrape endpoint: A Prometheus-compatible endpoint that your platform scrapes for all metrics collected by the Crusoe Watch Agent. See Configuring Telemetry Conduit.
- OpenTelemetry streaming (limited availability): Crusoe pushes metrics and logs, including CMK control plane audit logs, to any endpoint that accepts OpenTelemetry Protocol (OTLP) over HTTP. See Stream metrics and logs with OpenTelemetry.
How it works
The scrape endpoint uses the same metric collection infrastructure as Command Center Metrics:
- The Crusoe Watch Agent collects metrics from your VMs or CMK nodes at 60-second intervals.
- Metrics are published to the Crusoe metrics backend.
- Telemetry Conduit exposes a Prometheus-compatible scraping endpoint.
- Your external platform scrapes the endpoint to retrieve metrics.
Prerequisites
To use Telemetry Conduit, you need:
- Crusoe Watch Agent installed on your VMs or CMK nodes (see Metrics)
- External observability platform that supports Prometheus remote read or scraping
Available metrics
You can export any infrastructure and custom metrics collected by the Crusoe Watch Agent, including GPU (DCGM), CPU, memory, network, InfiniBand, and NVLink metrics. See Infrastructure Metrics for the complete list.
Configuring Telemetry Conduit
Endpoint
Use the following endpoint to access your metrics:
https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape
Authentication
You need a monitoring token to authenticate requests. Generate one using the Crusoe CLI. See Querying Metrics via API for instructions.
Connecting to Grafana
To connect Grafana to Telemetry Conduit:
-
In Grafana, navigate to Configuration > Data Sources > Add data source.
-
Select Prometheus.
-
Set the URL to:
https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape -
Under Custom HTTP Headers, add:
- Header:
Authorization - Value:
Bearer <monitoring-token>
- Header:
-
Set the Scrape interval to a minimum of 60 seconds.
-
Click Save & Test.
You can now build dashboards using the available infrastructure metrics.
Connecting to Datadog
To connect Datadog to Telemetry Conduit:
-
Add a Prometheus check to your Datadog Agent configuration:
instances:- prometheus_url: "https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape"namespace: "crusoe"metrics:- "*"headers:Authorization: "Bearer <monitoring-token>"Replace the following placeholders:
<project-id>: Your Crusoe project ID (find viacrusoe projects list)<monitoring-token>: Generate withcrusoe monitoring tokens create
-
Restart the Datadog Agent. Metrics will appear in Datadog under the configured namespace.
Connecting to Splunk
To connect Splunk to Telemetry Conduit, configure your OpenTelemetry Collector with Crusoe's scrape endpoint. Below is an example setting:
receivers:
prometheus:
config:
scrape_configs:
- job_name: "crusoe-metrics"
scrape_interval: 60s
scrape_timeout: 10s
scheme: https
authorization:
type: Bearer
credentials: <crusoe-monitoring-token>
static_configs:
- targets: ["api.crusoecloud.com"]
metrics_path: "/api/v1/projects/<project-id>/metrics/scrape"
processors:
transform:
metric_statements:
- context: datapoint
statements:
- delete_key(attributes, "crusoe_resource")
batch:
timeout: 10s
send_batch_size: 1000
exporters:
otlphttp:
metrics_endpoint: "https://ingest.<splunk-realm>.signalfx.com/v2/datapoint/otlp"
headers:
X-SF-Token: "<splunk-access-token>"
service:
pipelines:
metrics:
receivers: [prometheus]
processors: [transform, batch]
exporters: [otlphttp]
Replace the following placeholders:
<crusoe-monitoring-token>: Generate withcrusoe monitoring tokens create<project-id>: Your Crusoe project ID (find viacrusoe projects list)<splunk-access-token>: Your Splunk Observability Cloud access token<splunk-realm>: Your Splunk realm (e.g.,us1,us2,eu0)
Restart is required. Metrics will appear in Splunk Observability Cloud under Metrics → Metric Finder. Search for crusoe_ to find your Crusoe metrics.
Connecting to other Prometheus-compatible platforms
You can connect any Prometheus-compatible platform to Telemetry Conduit using the scrape endpoint.
Configure your platform with:
- Endpoint URL:
https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape - Authentication: Bearer token via
Authorizationheader - Scrape interval: Minimum 60 seconds
Replace the following placeholders:
<project-id>: Your Crusoe project ID (find viacrusoe projects list)- Generate a monitoring token with
crusoe monitoring tokens create
Filtering metrics
All platforms support filtering metrics by adding query parameters to the scrape endpoint URL. This allows you to reduce the volume of metrics exported and focus on specific data.
Available filters
| Parameter | Description | Example |
|---|---|---|
metric_name | Filter by metric name (comma-separated list) | metric_name=crusoe_vm_memory_.* |
labels | Filter by label key:value pairs (comma-separated) | labels=collector:disk,device:vda |
metric_category | Filter by category (system or custom) | metric_category=system |
Filter examples
Filter by memory-related metrics:
https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape?metric_name=crusoe_vm_memory_.*
Filter by labels:
https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape?labels=collector:disk
Filter by metric category (system metrics only):
https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape?metric_category=system
Combined filters for disk metrics on device vda1:
https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape?metric_name=crusoe_vm_disk_.*&labels=device:vda1
Platform-specific examples
Datadog:
instances:
- prometheus_url: "https://api.crusoecloud.com/v1/projects/<project-id>/metrics/scrape?metric_name=crusoe_vm_memory_.*"
namespace: "crusoe"
metrics:
- "*"
headers:
Authorization: "Bearer <monitoring-token>"
Splunk OpenTelemetry Collector:
metrics_path: "/api/v1/projects/<project-id>/metrics/scrape?labels=collector:disk"
Grafana or other Prometheus-compatible platforms:
Add query parameters directly to the configured endpoint URL.
Stream metrics and logs with OpenTelemetry
OpenTelemetry streaming is in limited availability. To enable it for your organization, contact your Crusoe account team or Crusoe support.
The scrape endpoint lets your platform pull metrics. OpenTelemetry streaming works the other way: Crusoe pushes your metrics and logs to an endpoint you operate as they arrive, using OTLP over HTTP. Use it to send telemetry to a third-party observability platform, a SIEM system, or your own OpenTelemetry Collector.
Streaming forwards everything Command Center collects for the project:
- Metrics: Infrastructure and custom metrics from VMs and CMK clusters—see Available metrics.
- Logs: Node logs from VMs and CMK clusters, and control plane logs from CMK v2 clusters, including Kubernetes API server audit logs.
How streaming works
Each forwarding configuration you create runs its own managed forwarder:
- Command Center collects metrics and logs from your project.
- The forwarder applies the filters and transforms in your configuration.
- The forwarder sends the remaining data to your endpoint over OTLP/HTTP, authenticated with the credential you provide.
Keep the following delivery behavior in mind:
- Retries: The forwarder retries deliveries that fail because of transient network errors.
- No backfill: If your endpoint is unavailable for an extended period, data from that period won't be present. To recover it, query the Metrics and Logs APIs.
- Temporality: Metrics are sent with cumulative temporality. If your platform requires delta temporality, convert it at your endpoint.
- Multiple destinations: Create one configuration per destination. Each configuration has its own endpoint, credential, and filters.
Prerequisites
To stream telemetry, you need:
- An organization enabled for OpenTelemetry streaming.
- The Editor role on the project. The Viewer role can list and describe configurations.
- A Crusoe Cloud API access key to sign requests. See API Reference.
- An endpoint that accepts OTLP/HTTP with gzip-compressed protobuf bodies, on
https://with a public hostname. Private, loopback, link-local, and cluster-internal hosts are rejected. - If your endpoint restricts inbound traffic, an allowlist entry for each Crusoe forwarder IP address:
34.46.227.214,35.253.236.229, and136.65.156.244.
Create a forwarding configuration
Forwarding configurations are managed with the API. All endpoints are under the following base URL:
https://api.crusoecloud.com/v1/projects/<project-id>/otel-forwarding-configurations
The examples in this section sign requests with the X-Crusoe-Timestamp and Authorization headers described in the API Reference. Replace $timestamp and $signature with the values you compute for each request.
To create a configuration and start forwarding:
-
Write the filters for the configuration to
filters.yaml. The following file forwards all metrics and all logs:filters.yamlmetrics: {}logs: {}To forward only some data, see Filter and transform telemetry.
-
Build the request body. The following command uses
jqto embed the filters and credential as strings:jq -n \--rawfile filters filters.yaml \--arg token "<destination-api-key>" \'{exporter_name: "siem-prod",destination_type: "otlp_http",endpoint_url: "https://otlp.example.com",auth_type: "custom_header",credential: {config: { header_name: "X-API-Key" },secret: ({ token: $token } | tojson)},filters_yaml: $filters}' > create.json -
Create the configuration:
curl -X POST "https://api.crusoecloud.com/v1/projects/$project_id/otel-forwarding-configurations" \-H "X-Crusoe-Timestamp: $timestamp" \-H "Authorization: Bearer $signature" \-H "Content-Type: application/json" \-d @create.jsonThe response includes the configuration's
exporter_id. -
Check the forwarder's status until
status.stateisrunning:curl "https://api.crusoecloud.com/v1/projects/$project_id/otel-forwarding-configurations/$exporter_id" \-H "X-Crusoe-Timestamp: $timestamp" \-H "Authorization: Bearer $signature"If
status.stateisfailed,status.messageexplains why. See Forwarder states.
Configuration fields
| Field | Required | Description |
|---|---|---|
exporter_name | Yes | Name of the configuration. 1–64 characters on a single line, unique within the project. |
destination_type | Yes | Protocol used to send data. otlp_http is the only supported value. |
endpoint_url | Yes | Base URL of the OTLP/HTTP endpoint that receives data. Must use https:// and a public hostname. The forwarder appends the standard OTLP signal path, such as /v1/logs. |
auth_type | Yes | bearer sends Authorization: Bearer <token>. custom_header sends <header_name>: <token>. |
credential.secret | Yes | JSON object with a token field, encoded as a string. Encrypted at rest and never returned by the API. |
credential.config.header_name | When auth_type is custom_header | Header that carries the token, such as X-API-Key or DD-API-KEY. |
filters_yaml | Yes | Signals to forward, and the filters and transforms to apply to them, as a YAML string. See Filter and transform telemetry. |
Responses return cred_masked in place of the secret, showing only the first and last characters of each secret field.
Filter and transform telemetry
filters_yaml declares which signals to forward and, for each signal, the OpenTelemetry Collector filter and transform processors to run. Processor bodies use the same syntax as an OpenTelemetry Collector configuration, so you can reuse filters you already maintain.
The following rules apply:
- Signals: The top-level keys are
metricsandlogs. Declare at least one. A signal you don't declare isn't forwarded. To forward a signal unfiltered, declare it with an empty body, such asmetrics: {}. - Processor names: Name each processor
filter/<name>ortransform/<name>, where<name>uses only letters, numbers, underscores, and hyphens. - Order:
processing_sequencelists the processors to run, in order. It may reference only processors declared under the same signal. Processors you declare but don't list don't run. - Size: The YAML can be at most 64 KiB. Unknown keys are rejected.
A filter processor drops every record that matches one of its conditions.
Forward all metrics, and only CMK control plane audit logs:
metrics: {}
logs:
filter/audit_only:
error_mode: ignore
logs:
log_record:
- attributes["log_source"] != "k8s_audit"
processing_sequence:
- filter/audit_only
Drop debug metrics, and drop the raw copy of each log line to reduce volume:
metrics:
filter/drop_debug:
metrics:
metric:
- IsMatch(name, "^debug_.*")
processing_sequence:
- filter/drop_debug
logs:
transform/trim_payload:
log_statements:
- context: log
statements:
- delete_key(attributes["payload"], "message")
processing_sequence:
- transform/trim_payload
Each log record carries the original line in payload.message and a parsed copy in payload.parsed. You can drop payload.message to roughly halve the size of your audit records. Keep it if you need the byte-exact original line. See Log record format.
The API checks the structure of filters_yaml when you create or modify a configuration, but not the processor bodies. If the forwarder can't load a processor, the configuration is saved and status.state becomes failed, with the error in status.message.
Log record format
The forwarder sends logs as OTLP protobuf in POST requests to <endpoint_url>/v1/logs, with up to 256 log records per request. Each request carries the authentication header from your configuration.
Records are grouped by source into ResourceLogs. Each record has the following structure:
| OTLP field | Source |
|---|---|
resource.attributes | Identity of the source: crusoe_org_id, crusoe_project_id, and for node logs crusoe_vm_id, crusoe_vm_name, and crusoe_cluster_id |
time_unix_nano | Event time |
observed_time_unix_nano | Time the forwarder received the record |
body | Log message |
severity_text | Severity: emergency, alert, critical, error, warning, notice, info, or debug |
severity_number | 5 for debug, 9 for info, 13 for warning, 17 for error, 21 for critical, and 0 for notice, alert, and emergency. Use severity_text for the last three. |
attributes | Every other field of the record, including log_source and payload, with JSON types preserved |
The log_source attribute identifies the record family:
| Family | log_source values |
|---|---|
| Node logs | journald, crusoe-watch-agent, cwa-manager, and cwa-report-runner |
| CMK v2 control plane logs | k8s_audit, k8s_apiserver, k8s_controller_manager, k8s_etcd, k8s_konnectivity, and k8s_scheduler |
For control plane logs, crusoe_cluster_id is a record attribute, not a resource attribute. For the fields in payload, see Control plane logs.
For most JournalD node logs, time_unix_nano carries the time the record was received, a few seconds after the event. The event time is in the payload.timestamp attribute. If your platform orders records by time_unix_nano, map payload.timestamp to the record time at ingest. Control plane logs aren't affected.
Manage forwarding configurations
Use the following endpoints, relative to the base URL, to manage configurations:
| Method | Path | Purpose | Success |
|---|---|---|---|
POST | / | Create a configuration and start forwarding | 200, configuration and status |
GET | / | List configurations in the project | 200, {"items": [...]} |
GET | /{exporter_id} | Describe one configuration | 200, configuration and status |
PATCH | /{exporter_id} | Change the name, endpoint, credential, or filters | 202, configuration and status |
POST | /{exporter_id}/stop | Stop forwarding and keep the configuration | 202, configuration and status |
POST | /{exporter_id}/start | Resume forwarding | 202, configuration and status |
DELETE | /{exporter_id} | Delete a stopped configuration | 204 |
Changes apply asynchronously. The status in a write response reflects the moment of the write, so describe the configuration until status.state settles.
GET / returns a summary of each configuration: exporter_id, exporter_name, endpoint_url, created_at, created_by, and status (the state only).
Modify a configuration
PATCH accepts any subset of the create fields. Fields you omit keep their stored values.
Change the endpoint:
curl -X PATCH "https://api.crusoecloud.com/v1/projects/$project_id/otel-forwarding-configurations/$exporter_id" \
-H "X-Crusoe-Timestamp: $timestamp" \
-H "Authorization: Bearer $signature" \
-H "Content-Type: application/json" \
-d '{"endpoint_url": "https://otlp-2.example.com/v1"}'
Rotate the credential:
A credential in a PATCH request replaces the stored credential entirely, so it must include secret. If you switch auth_type to custom_header, include credential.config.header_name.
curl -X PATCH "https://api.crusoecloud.com/v1/projects/$project_id/otel-forwarding-configurations/$exporter_id" \
-H "X-Crusoe-Timestamp: $timestamp" \
-H "Authorization: Bearer $signature" \
-H "Content-Type: application/json" \
-d '{"credential": {"config": {"header_name": "X-API-Key"}, "secret": "{\"token\":\"<new-destination-api-key>\"}"}}'
Stop, start, and delete a configuration
Stopping a configuration pauses forwarding and keeps its settings. You can delete a configuration only after it's stopped.
To delete a configuration:
-
Stop the configuration:
curl -X POST "https://api.crusoecloud.com/v1/projects/$project_id/otel-forwarding-configurations/$exporter_id/stop" \-H "X-Crusoe-Timestamp: $timestamp" \-H "Authorization: Bearer $signature" -
Describe the configuration until
status.stateisstopped. -
Delete the configuration:
curl -X DELETE "https://api.crusoecloud.com/v1/projects/$project_id/otel-forwarding-configurations/$exporter_id" \-H "X-Crusoe-Timestamp: $timestamp" \-H "Authorization: Bearer $signature"Deleting a configuration that isn't stopped returns
409.
To resume a stopped configuration, send POST to /{exporter_id}/start.
Forwarder states
status.state reports the forwarder's state, and status.last_status_evaluated reports when Crusoe last observed it:
| State | Meaning |
|---|---|
starting | Forwarding was requested and the forwarder is being provisioned. |
running | Forwarding. |
degraded | Forwarding, but the forwarder reports a problem. |
unhealthy | The forwarder is up but not forwarding. |
stopping | A stop was requested and the forwarder is being removed. |
stopped | Not forwarding, by request. |
failed | The configuration couldn't be applied. status.message explains why. |
unknown | Not yet observed. |
Errors
| Code | Cause |
|---|---|
400 | Validation failed. The response body names the field. |
401 / 403 | The request isn't authenticated, the caller lacks the required project role, or the organization isn't enabled for OpenTelemetry streaming. |
404 | The project or configuration doesn't exist. |
409 | The name is already in use in the project, or the configuration to delete isn't stopped. |
What's next
- Metrics — View metrics directly in the Crusoe Console
- Logs — Access centralized log data
- Control plane logs — Audit CMK v2 control planes
- Notifications — Get notified about resource health via email and in-console, and set up alert routing to Slack or webhooks