amp metrics

amp metrics lists and reads saved metric definitions. This read-only command family requires the analytics:read scope.

amp metrics list

Returns saved metrics in the project. Results are paginated with cursor-based pagination. Full metric definitions are included in list responses.

Sortable fields are updated_at and name; prefix with - for descending. Defaults to -updated_at (most recently updated first).

bash
amp metrics list --project <project_id> --limit 10

Requires the analytics:read scope.

amp metrics get

Returns the full saved metric definition including type-specific params, version, and metadata.

bash
amp metrics get --project <project_id> --metric <metric_id>

Requires the analytics:read scope.

Was this helpful?

For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.

On this page