Skip to content

orca metric — metric (Gnocchi)

Query metrics, measures & resources (Gnocchi).


archive-policy-create

[OPTIONS] NAME

orca metric archive-policy-create [OPTIONS]
Option Description
--definition GRANULARITY:POINTS
--aggregation-method TEXT Aggregation method (repeatable).
--help Show this message and exit.

archive-policy-delete

[OPTIONS] NAME

orca metric archive-policy-delete [OPTIONS]
Option Description
-y, --yes Skip confirmation.
--help Show this message and exit.

archive-policy-list

List archive policies.

orca metric archive-policy-list [OPTIONS]
Option Description
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

archive-policy-show

Show an archive policy.

orca metric archive-policy-show [OPTIONS]
Option Description
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

create

Create a Gnocchi metric.

orca metric create [OPTIONS]
Option Description
--name TEXT Metric name. [required]
--archive-policy-name TEXT Archive policy to use (default: low).
--resource-id TEXT Resource ID to attach the metric to.
--help Show this message and exit.

delete

Delete a Gnocchi metric.

orca metric delete [OPTIONS]
Option Description
-y, --yes Skip confirmation.
--help Show this message and exit.

list

List metrics.

orca metric list [OPTIONS]
Option Description
--limit INTEGER Max results.
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

measures

Get measures (datapoints) for a metric.

orca metric measures [OPTIONS]
Option Description
--start TEXT Start timestamp (ISO 8601 or relative e.g.
--stop TEXT Stop timestamp.
--granularity TEXT Granularity in seconds.
--aggregation TEXT Aggregation method. [default: mean]
--limit INTEGER Max measures to return.
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

measures-add

Push measures to a metric.

orca metric measures-add [OPTIONS]
Option Description
--measure TIMESTAMP:VALUE Measure as timestamp:value (repeatable).
--help Show this message and exit.

resource-list

List resources.

orca metric resource-list [OPTIONS]
Option Description
--type TEXT Resource type to list. [default: generic]
--limit INTEGER Max results. Gnocchi can return very large
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

resource-show

Show resource details and its metrics.

orca metric resource-show [OPTIONS]
Option Description
--type TEXT Resource type. [default: generic]
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

resource-type-create

[OPTIONS] NAME

orca metric resource-type-create [OPTIONS]
Option Description
--attribute KEY:TYPE Resource attribute key:type (repeatable). E.g.
--help Show this message and exit.

resource-type-delete

[OPTIONS] RESOURCE_TYPE

orca metric resource-type-delete [OPTIONS]
Option Description
-y, --yes Skip confirmation.
--help Show this message and exit.

resource-type-list

List resource types.

orca metric resource-type-list [OPTIONS]
Option Description
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

resource-type-show

RESOURCE_TYPE

orca metric resource-type-show [OPTIONS]
Option Description
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

show

Show metric details.

orca metric show [OPTIONS]
Option Description
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.

status

Show Gnocchi processing status.

orca metric status [OPTIONS]
Option Description
--noindent Disable JSON indentation.
--max-width INTEGER Maximum table width (0 = unlimited).
--fit-width Fit table to terminal width.
-c, --column TEXT Column to include (repeatable). Shows all if
-f, --format [table|json|value]
--help Show this message and exit.