Skip to main content
GET
GET /v1/metrics/name/{name}/export

Import and Export Metrics

Export one metric or all metrics in the global collection as comma-separated values (CSV). Import a CSV file to create or update metrics in bulk. Synchronous routes return data immediately. Asynchronous routes return a job identifier for large collections. Use the literal * as {name} to process all metrics. A metric’s fully qualified name is the same as its globally unique name.

Endpoints

CSV Format

Call GET /v1/metrics/documentation/csv to retrieve the supported columns, required fields, and field descriptions. Metric CSV files include definition and governance metadata:

Export to CSV

GET /v1/metrics/name/{name}/export
string
required
Metric name to export. Use * to export all metrics.
The synchronous endpoint returns CSV text.

Import from CSV

PUT /v1/metrics/name/{name}/import
string
required
Metric import scope. Use * for a collection import.
boolean
default:"true"
When true, validate the CSV without changing metrics. Set to false to apply the import.
Send the CSV as text/plain; charset=UTF-8.
Validate every import with dryRun=true before applying it with dryRun=false.

Export Asynchronously

GET /v1/metrics/name/{name}/exportAsync starts an export job and returns its identifier.

Import Asynchronously

PUT /v1/metrics/name/{name}/importAsync starts an import job and returns its identifier. The dryRun query parameter has the same behavior as the synchronous import route.

Software Development Kit (SDK) Examples

The Python SDK for 2.0 does not support Metric CSV operations through the typed Metrics class. Use the configured SDK transport shown below. The Java SDK provides fluent Metrics.exportCsv and Metrics.importCsv operations.
GET /v1/metrics/name/{name}/export

Track Asynchronous Jobs

Use the returned jobId with the CSV job endpoints:

Returns

  • A synchronous export returns CSV text.
  • A synchronous import returns row counts, status, and a result CSV with validation or processing details.
  • An asynchronous request returns a job identifier and status message.

Error Handling