The gnocchi client is the command-line interface (CLI) for the A time series storage and resources index service (gnocchi) API and its extensions.
This chapter documents gnocchi version 3.1.1
.
For help on a specific gnocchi command, enter:
$ gnocchi help COMMAND
usage: gnocchi [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
[--gnocchi-api-version GNOCCHI_API_VERSION] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>] [--os-auth-type <name>]
[--user <gnocchi user>] [--endpoint <gnocchi endpoint>]
--version
-v, --verbose
-q, --quiet
--log-file LOG_FILE
-h, --help
--debug
--gnocchi-api-version GNOCCHI_API_VERSION
env[GNOCCHI_API_VERSION]
or 1.--os-auth-type <name>, --os-auth-plugin <name>
usage: gnocchi archive-policy create [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] -d <DEFINITION>
[-b BACK_WINDOW] [-m AGGREGATION_METHODS]
name
Create an archive policy
Positional arguments:
name
Optional arguments:
-h, --help
-d <DEFINITION>, --definition <DEFINITION>
-b BACK_WINDOW, --back-window BACK_WINDOW
-m AGGREGATION_METHODS, --aggregation-method AGGREGATION_METHODS
usage: gnocchi archive-policy delete [-h] name
Delete an archive policy
Positional arguments:
name
Optional arguments:
-h, --help
usage: gnocchi archive-policy list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List archive policies
Optional arguments:
-h, --help
usage: gnocchi archive-policy show [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
name
Show an archive policy
Positional arguments:
name
Optional arguments:
-h, --help
usage: gnocchi archive-policy update [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] -d <DEFINITION>
name
Update an archive policy
Positional arguments:
name
Optional arguments:
-h, --help
-d <DEFINITION>, --definition <DEFINITION>
usage: gnocchi archive-policy-rule create [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] -a
ARCHIVE_POLICY_NAME -m
METRIC_PATTERN
name
Create an archive policy rule
Positional arguments:
name
Optional arguments:
-h, --help
-a ARCHIVE_POLICY_NAME, --archive-policy-name ARCHIVE_POLICY_NAME
-m METRIC_PATTERN, --metric-pattern METRIC_PATTERN
usage: gnocchi archive-policy-rule delete [-h] name
Delete an archive policy rule
Positional arguments:
name
Optional arguments:
-h, --help
usage: gnocchi archive-policy-rule list [-h]
[-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List archive policy rules
Optional arguments:
-h, --help
usage: gnocchi archive-policy-rule show [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
name
Show an archive policy rule
Positional arguments:
name
Optional arguments:
-h, --help
usage: gnocchi benchmark measures add [-h] [--resource-id RESOURCE_ID]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [--workers WORKERS]
--count COUNT [--batch BATCH]
[--timestamp-start TIMESTAMP_START]
[--timestamp-end TIMESTAMP_END] [--wait]
metric
Do benchmark testing of adding measurements
Positional arguments:
metric
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
--workers WORKERS, -w WORKERS
--count COUNT, -n COUNT
--batch BATCH, -b BATCH
--timestamp-start TIMESTAMP_START, -s TIMESTAMP_START
--timestamp-end TIMESTAMP_END, -e TIMESTAMP_END
--wait
usage: gnocchi benchmark measures show [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
[--resource-id RESOURCE_ID]
[--aggregation AGGREGATION]
[--start START] [--stop STOP]
[--granularity GRANULARITY] [--refresh]
[--resample RESAMPLE]
[--workers WORKERS] --count COUNT
metric
Do benchmark testing of measurements show
Positional arguments:
metric
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
--aggregation AGGREGATION
--start START
--stop STOP
--granularity GRANULARITY
--refresh
--resample RESAMPLE
--workers WORKERS, -w WORKERS
--count COUNT, -n COUNT
usage: gnocchi benchmark metric create [-h] [--resource-id RESOURCE_ID]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
[--archive-policy-name ARCHIVE_POLICY_NAME]
[--workers WORKERS] --count COUNT
[--keep]
Do benchmark testing of metric creation
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
--archive-policy-name ARCHIVE_POLICY_NAME, -a ARCHIVE_POLICY_NAME
--workers WORKERS, -w WORKERS
--count COUNT, -n COUNT
--keep, -k
usage: gnocchi benchmark metric show [-h] [--resource-id RESOURCE_ID]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [--workers WORKERS]
--count COUNT
metric [metric ...]
Do benchmark testing of metric show
Positional arguments:
metric
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
--workers WORKERS, -w WORKERS
--count COUNT, -n COUNT
usage: gnocchi capabilities list [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
List capabilities
Optional arguments:
-h, --help
usage: gnocchi measures add [-h] [--resource-id RESOURCE_ID] -m MEASURE metric
Add measurements to a metric
Positional arguments:
metric
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
-m MEASURE, --measure MEASURE
usage: gnocchi measures aggregation [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}] -m
METRIC [METRIC ...]
[--aggregation AGGREGATION]
[--reaggregation REAGGREGATION]
[--start START] [--stop STOP]
[--granularity GRANULARITY]
[--needed-overlap NEEDED_OVERLAP]
[--query QUERY]
[--resource-type RESOURCE_TYPE]
[--groupby GROUPBY] [--refresh]
[--resample RESAMPLE] [--fill FILL]
Get measurements of aggregated metrics
Optional arguments:
-h, --help
-m METRIC [METRIC ...], --metric METRIC [METRIC ...]
--aggregation AGGREGATION
--reaggregation REAGGREGATION
--start START
--stop STOP
--granularity GRANULARITY
--needed-overlap NEEDED_OVERLAP
--query QUERY
--resource-type RESOURCE_TYPE
--groupby GROUPBY
--refresh
--resample RESAMPLE
--fill FILL
usage: gnocchi measures batch-metrics [-h] file
Positional arguments:
file
Optional arguments:
-h, --help
usage: gnocchi measures batch-resources-metrics [-h] [--create-metrics] file
Positional arguments:
file
Optional arguments:
-h, --help
--create-metrics
usage: gnocchi measures show [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--resource-id RESOURCE_ID]
[--aggregation AGGREGATION] [--start START]
[--stop STOP] [--granularity GRANULARITY]
[--refresh] [--resample RESAMPLE]
metric
Get measurements of a metric
Positional arguments:
metric
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
--aggregation AGGREGATION
--start START
--stop STOP
--granularity GRANULARITY
--refresh
--resample RESAMPLE
usage: gnocchi metric create [-h] [--resource-id RESOURCE_ID]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[--archive-policy-name ARCHIVE_POLICY_NAME]
[--unit UNIT]
[METRIC_NAME]
Create a metric
Positional arguments:
METRIC_NAME
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
--archive-policy-name ARCHIVE_POLICY_NAME, -a ARCHIVE_POLICY_NAME
--unit UNIT, -u UNIT
usage: gnocchi metric delete [-h] [--resource-id RESOURCE_ID]
metric [metric ...]
Delete a metric
Positional arguments:
metric
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
usage: gnocchi metric list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--limit <LIMIT>] [--marker <MARKER>]
[--sort <SORT>]
List metrics
Optional arguments:
-h, --help
--limit <LIMIT>
--marker <MARKER>
--sort <SORT>
usage: gnocchi metric show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--prefix PREFIX]
[--resource-id RESOURCE_ID]
metric
Show a metric
Positional arguments:
metric
Optional arguments:
-h, --help
--resource-id RESOURCE_ID, -r RESOURCE_ID
usage: gnocchi resource batch delete [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [--type RESOURCE_TYPE]
query
Delete a batch of resources based on attribute values
Positional arguments:
query
Optional arguments:
-h, --help
--type RESOURCE_TYPE, -t RESOURCE_TYPE
usage: gnocchi resource create [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[--type RESOURCE_TYPE] [-a ATTRIBUTE]
[-m ADD_METRIC] [-n CREATE_METRIC]
resource_id
Create a resource
Positional arguments:
resource_id
Optional arguments:
-h, --help
--type RESOURCE_TYPE, -t RESOURCE_TYPE
-a ATTRIBUTE, --attribute ATTRIBUTE
-m ADD_METRIC, --add-metric ADD_METRIC
-n CREATE_METRIC, --create-metric CREATE_METRIC
usage: gnocchi resource delete [-h] resource_id
Delete a resource
Positional arguments:
resource_id
Optional arguments:
-h, --help
usage: gnocchi resource history [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--details] [--limit <LIMIT>]
[--marker <MARKER>] [--sort <SORT>]
[--type RESOURCE_TYPE]
resource_id
Show the history of a resource
Positional arguments:
resource_id
Optional arguments:
-h, --help
--details
--limit <LIMIT>
--marker <MARKER>
--sort <SORT>
--type RESOURCE_TYPE, -t RESOURCE_TYPE
usage: gnocchi resource list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--details] [--history] [--limit <LIMIT>]
[--marker <MARKER>] [--sort <SORT>]
[--type RESOURCE_TYPE]
List resources
Optional arguments:
-h, --help
--details
--history
--limit <LIMIT>
--marker <MARKER>
--sort <SORT>
--type RESOURCE_TYPE, -t RESOURCE_TYPE
usage: gnocchi resource show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[--type RESOURCE_TYPE]
resource_id
Show a resource
Positional arguments:
resource_id
Optional arguments:
-h, --help
--type RESOURCE_TYPE, -t RESOURCE_TYPE
usage: gnocchi resource update [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[--type RESOURCE_TYPE] [-a ATTRIBUTE]
[-m ADD_METRIC] [-n CREATE_METRIC]
[-d DELETE_METRIC]
resource_id
Update a resource
Positional arguments:
resource_id
Optional arguments:
-h, --help
--type RESOURCE_TYPE, -t RESOURCE_TYPE
-a ATTRIBUTE, --attribute ATTRIBUTE
-m ADD_METRIC, --add-metric ADD_METRIC
-n CREATE_METRIC, --create-metric CREATE_METRIC
-d DELETE_METRIC, --delete-metric DELETE_METRIC
usage: gnocchi resource-type create [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [-a ATTRIBUTE]
name
Create a resource type
Positional arguments:
name
Optional arguments:
-h, --help
-a ATTRIBUTE, --attribute ATTRIBUTE
usage: gnocchi resource-type delete [-h] name
Delete a resource type
Positional arguments:
name
Optional arguments:
-h, --help
usage: gnocchi resource-type list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List resource types
Optional arguments:
-h, --help
usage: gnocchi resource-type show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
name
Show a resource type
Positional arguments:
name
Optional arguments:
-h, --help
usage: gnocchi resource-type update [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [-a ATTRIBUTE]
[-r REMOVE_ATTRIBUTE]
name
Positional arguments:
name
Optional arguments:
-h, --help
-a ATTRIBUTE, --attribute ATTRIBUTE
-r REMOVE_ATTRIBUTE, --remove-attribute REMOVE_ATTRIBUTE
usage: gnocchi status [-h] [-f {html,json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--print-empty] [--noindent]
[--prefix PREFIX]
Show the status of measurements processing
Optional arguments:
-h, --help
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.