astro env metrics-export get

This command is only available on Astro.

Get a single metrics export by its ID or key.

Usage

$astro env metrics-export get <id-or-key>

Options

OptionDescriptionPossible Values
<id-or-key>The ID or key of the metrics export to get.Any valid metrics export ID or key
--formatThe output format. Defaults to table.table, json, or yaml
--include-secretsSurface secret values in the output. Requires an Organization policy that allows it.None
--workspace-idSet the Workspace scope. Mutually exclusive with --deployment-id. Defaults to your current Workspace from CLI context.Any valid Workspace ID
--deployment-idSet the Deployment scope. Mutually exclusive with --workspace-id.Any valid Deployment ID

Examples

$# Get a Workspace metrics export by key
$astro env metrics-export get prom_main --workspace-id <workspace-id>