GET /v1/metrics/name/{name}/export
Import and Export Metrics
Bulk import and export governed metrics as comma-separated values with Collate endpoints and client libraries
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
CallGET /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.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.text/plain; charset=UTF-8.
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 typedMetrics 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 returnedjobId 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.