Chapter 14. A Time Series Storage and Resources Index Service Command-line Client
2.6.0.
$gnocchihelpCOMMAND
14.1. gnocchi Usage
usage: gnocchi [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
[--os-region-name <auth-region-name>]
[--os-interface <interface>]
[--gnocchi-api-version GNOCCHI_API_VERSION] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>] [--os-auth-type <name>]
[--os-auth-url OS_AUTH_URL] [--os-domain-id OS_DOMAIN_ID]
[--os-domain-name OS_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-trust-id OS_TRUST_ID]
[--os-default-domain-id OS_DEFAULT_DOMAIN_ID]
[--os-default-domain-name OS_DEFAULT_DOMAIN_NAME]
[--os-user-id OS_USER_ID] [--os-username OS_USERNAME]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-password OS_PASSWORD] [--endpoint ENDPOINT]14.2. gnocchi Optional Arguments
- --version
show program's version number and exit
- -v, --verbose
Increase verbosity of output. Can be repeated.
- -q, --quiet
Suppress output except warnings and errors.
- --log-file LOG_FILE
Specify a file to log output. Disabled by default.
- -h, --help
Show help message and exit.
- --debug
Show tracebacks on errors.
- --os-region-name <auth-region-name>
Authentication region name (Env: OS_REGION_NAME)
- --os-interface <interface>
Select an interface type. Valid interface types:
[admin, public, internal]. (Env: OS_INTERFACE)
- --gnocchi-api-version GNOCCHI_API_VERSION
Defaults toenv[GNOCCHI_API_VERSION]or 1.
- --os-auth-type <name>, --os-auth-plugin <name>
Authentication type to use
- --endpoint ENDPOINT
Gnocchi endpoint (Env: GNOCCHI_ENDPOINT)
14.3. gnocchi archive-policy create
usage: gnocchi archive-policy create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX] -d
<DEFINITION> [-b BACK_WINDOW]
[-m AGGREGATION_METHODS]
namePositional arguments
- name
name of the archive policy
Optional arguments
- -h, --help
show this help message and exit
- -d <DEFINITION>, --definition <DEFINITION>
two attributes (separated by ',') of an archive policy
definition with its name and value separated with a
':'
- -b BACK_WINDOW, --back-window BACK_WINDOW
back window of the archive policy
- -m AGGREGATION_METHODS, --aggregation-method AGGREGATION_METHODS
aggregation method of the archive policy
14.4. gnocchi archive-policy delete
usage: gnocchi archive-policy delete [-h] name
Positional arguments
- name
Name of the archive policy
Optional arguments
- -h, --help
show this help message and exit
14.5. gnocchi archive-policy list
usage: gnocchi archive-policy list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]Optional arguments
- -h, --help
show this help message and exit
14.6. gnocchi archive-policy show
usage: gnocchi archive-policy show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
namePositional arguments
- name
Name of the archive policy
Optional arguments
- -h, --help
show this help message and exit
14.7. gnocchi archive-policy update
usage: gnocchi archive-policy update [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX] -d
<DEFINITION>
namePositional arguments
- name
name of the archive policy
Optional arguments
- -h, --help
show this help message and exit
- -d <DEFINITION>, --definition <DEFINITION>
two attributes (separated by ',') of an archive policy
definition with its name and value separated with a
':'
14.8. gnocchi archive-policy-rule create
usage: gnocchi archive-policy-rule create [-h]
[-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX] -a
ARCHIVE_POLICY_NAME -m
METRIC_PATTERN
namePositional arguments
- name
Rule name
Optional arguments
- -h, --help
show this help message and exit
- -a ARCHIVE_POLICY_NAME, --archive-policy-name ARCHIVE_POLICY_NAME
Archive policy name
- -m METRIC_PATTERN, --metric-pattern METRIC_PATTERN
Wildcard of metric name to match
14.9. gnocchi archive-policy-rule delete
usage: gnocchi archive-policy-rule delete [-h] name
Positional arguments
- name
Name of the archive policy rule
Optional arguments
- -h, --help
show this help message and exit
14.10. gnocchi archive-policy-rule list
usage: gnocchi archive-policy-rule list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]Optional arguments
- -h, --help
show this help message and exit
14.11. gnocchi archive-policy-rule show
usage: gnocchi archive-policy-rule show [-h]
[-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
namePositional arguments
- name
Name of the archive policy rule
Optional arguments
- -h, --help
show this help message and exit
14.12. gnocchi benchmark measures add
usage: gnocchi benchmark measures add [-h] [--resource-id RESOURCE_ID]
[-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--workers WORKERS] --count COUNT
[--batch BATCH]
[--timestamp-start TIMESTAMP_START]
[--timestamp-end TIMESTAMP_END] [--wait]
metricPositional arguments
- metric
ID or name of the metric
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
- --workers WORKERS, -w WORKERS
Number of workers to use
- --count COUNT, -n COUNT
Number of total measures to send
- --batch BATCH, -b BATCH
Number of measures to send in each batch
- --timestamp-start TIMESTAMP_START, -s TIMESTAMP_START
First timestamp to use
- --timestamp-end TIMESTAMP_END, -e TIMESTAMP_END
Last timestamp to use
- --wait
Wait for all measures to be processed
14.13. gnocchi benchmark measures show
usage: gnocchi benchmark measures show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--resource-id RESOURCE_ID]
[--aggregation AGGREGATION]
[--start START] [--stop STOP]
[--granularity GRANULARITY] [--refresh]
[--workers WORKERS] --count COUNT
metricPositional arguments
- metric
ID or name of the metric
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
- --aggregation AGGREGATION
aggregation to retrieve
- --start START
beginning of the period
- --stop STOP
end of the period
- --granularity GRANULARITY
granularity to retrieve (in seconds)
- --refresh
force aggregation of all known measures
- --workers WORKERS, -w WORKERS
Number of workers to use
- --count COUNT, -n COUNT
Number of total measures to send
14.14. gnocchi benchmark metric create
usage: gnocchi benchmark metric create [-h] [--resource-id RESOURCE_ID]
[-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--archive-policy-name ARCHIVE_POLICY_NAME]
[--workers WORKERS] --count COUNT
[--keep]Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
- --archive-policy-name ARCHIVE_POLICY_NAME, -a ARCHIVE_POLICY_NAME
name of the archive policy
- --workers WORKERS, -w WORKERS
Number of workers to use
- --count COUNT, -n COUNT
Number of metrics to create
- --keep, -k
Keep created metrics
14.15. gnocchi benchmark metric show
usage: gnocchi benchmark metric show [-h] [--resource-id RESOURCE_ID]
[-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--workers WORKERS] --count COUNT
metric [metric ...]Positional arguments
- metric
ID or name of the metrics
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
- --workers WORKERS, -w WORKERS
Number of workers to use
- --count COUNT, -n COUNT
Number of metrics to get
14.16. gnocchi capabilities list
usage: gnocchi capabilities list [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]Optional arguments
- -h, --help
show this help message and exit
14.17. gnocchi measures add
usage: gnocchi measures add [-h] [--resource-id RESOURCE_ID] -m MEASURE metric
Positional arguments
- metric
ID or name of the metric
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
- -m MEASURE, --measure MEASURE
timestamp and value of a measure separated with a '@'
14.18. gnocchi measures aggregation
usage: gnocchi measures aggregation [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--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]Optional arguments
- -h, --help
show this help message and exit
- -m METRIC [METRIC ...], --metric METRIC [METRIC ...]
metrics IDs or metric name
- --aggregation AGGREGATION
granularity aggregation function to retrieve
- --reaggregation REAGGREGATION
groupby aggregation function to retrieve
- --start START
beginning of the period
- --stop STOP
end of the period
- --granularity GRANULARITY
granularity to retrieve (in seconds)
- --needed-overlap NEEDED_OVERLAP
percent of datapoints in each metrics required
- --query QUERY A
query to filter resource. The syntax is a
combination of attribute, operator and value. For
example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would
filter resource with a certain id. More complex
queries can be built, e.g.: not (flavor_id!="1" and
memory>=24). Use "" to force data to be interpreted as
string. Supported operators are: not, and, ∧ or, ∨,
>=, <=, !=, >, <, =, ==, eq, ne, lt, gt, ge, le, in,
like, ≠, ≥, ≤, like, in.
- --resource-type RESOURCE_TYPE
Resource type to query
- --groupby GROUPBY
Attribute to use to group resources
- --refresh
force aggregation of all known measures
14.19. gnocchi measures batch-metrics
usage: gnocchi measures batch-metrics [-h] file
Positional arguments
- file
File containing measurements to batch or - for stdin (see
Gnocchi REST API docs for the format
Optional arguments
- -h, --help
show this help message and exit
14.20. gnocchi measures batch-resources-metrics
usage: gnocchi measures batch-resources-metrics [-h] file
Positional arguments
- file
File containing measurements to batch or - for stdin (see
Gnocchi REST API docs for the format
Optional arguments
- -h, --help
show this help message and exit
14.21. gnocchi measures show
usage: gnocchi measures show [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--resource-id RESOURCE_ID]
[--aggregation AGGREGATION] [--start START]
[--stop STOP] [--granularity GRANULARITY]
[--refresh]
metricPositional arguments
- metric
ID or name of the metric
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
- --aggregation AGGREGATION
aggregation to retrieve
- --start START
beginning of the period
- --stop STOP
end of the period
- --granularity GRANULARITY
granularity to retrieve (in seconds)
- --refresh
force aggregation of all known measures
14.22. gnocchi metric create
usage: gnocchi metric create [-h] [--resource-id RESOURCE_ID]
[-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--prefix PREFIX]
[--archive-policy-name ARCHIVE_POLICY_NAME]
[--unit UNIT]
[METRIC_NAME]Positional arguments
- METRIC_NAME
Name of the metric
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
- --archive-policy-name ARCHIVE_POLICY_NAME, -a ARCHIVE_POLICY_NAME
name of the archive policy
- --unit UNIT, -u UNIT
unit of the metric
14.23. gnocchi metric delete
usage: gnocchi metric delete [-h] [--resource-id RESOURCE_ID]
metric [metric ...]Positional arguments
- metric
IDs or names of the metric
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
14.24. gnocchi metric list
usage: gnocchi metric list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--limit <LIMIT>] [--marker <MARKER>]
[--sort <SORT>]Optional arguments
- -h, --help
show this help message and exit
- --limit <LIMIT>
Number of metrics to return (Default is server
default)
- --marker <MARKER>
Last item of the previous listing. Return the next
results after this value
- --sort <SORT>
Sort of metric attribute (example: user_id:desc-
nullslast
14.25. gnocchi metric show
usage: gnocchi metric show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--prefix PREFIX] [--resource-id RESOURCE_ID]
metricPositional arguments
- metric
ID or name of the metric
Optional arguments
- -h, --help
show this help message and exit
- --resource-id RESOURCE_ID, -r RESOURCE_ID
ID of the resource
14.26. gnocchi resource create
usage: gnocchi resource create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--type RESOURCE_TYPE] [-a ATTRIBUTE]
[-m ADD_METRIC] [-n CREATE_METRIC]
resource_idPositional arguments
- resource_id
ID of the resource
Optional arguments
- -h, --help
show this help message and exit
- --type RESOURCE_TYPE, -t RESOURCE_TYPE
Type of resource
- -a ATTRIBUTE, --attribute ATTRIBUTE
name and value of an attribute separated with a ':'
- -m ADD_METRIC, --add-metric ADD_METRIC
name:id of a metric to add
- -n CREATE_METRIC, --create-metric CREATE_METRIC
name:archive_policy_name of a metric to create
14.27. gnocchi resource delete
usage: gnocchi resource delete [-h] resource_id
Positional arguments
- resource_id
ID of the resource
Optional arguments
- -h, --help
show this help message and exit
14.28. gnocchi resource history
usage: gnocchi resource history [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--details] [--limit <LIMIT>]
[--marker <MARKER>] [--sort <SORT>]
[--type RESOURCE_TYPE]
resource_idPositional arguments
- resource_id
ID of a resource
Optional arguments
- -h, --help
show this help message and exit
- --details
Show all attributes of generic resources
- --limit <LIMIT>
Number of resources to return (Default is server
default)
- --marker <MARKER>
Last item of the previous listing. Return the next
results after this value
- --sort <SORT>
Sort of resource attribute (example: user_id:desc-
nullslast
- --type RESOURCE_TYPE, -t RESOURCE_TYPE
Type of resource
14.29. gnocchi resource list
usage: gnocchi resource list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--details] [--history] [--limit <LIMIT>]
[--marker <MARKER>] [--sort <SORT>]
[--type RESOURCE_TYPE]Optional arguments
- -h, --help
show this help message and exit
- --details
Show all attributes of generic resources
- --history
Show history of the resources
- --limit <LIMIT>
Number of resources to return (Default is server
default)
- --marker <MARKER>
Last item of the previous listing. Return the next
results after this value
- --sort <SORT>
Sort of resource attribute (example: user_id:desc-
nullslast
- --type RESOURCE_TYPE, -t RESOURCE_TYPE
Type of resource
14.30. gnocchi resource search
usage: gnocchi resource search [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--details] [--history] [--limit <LIMIT>]
[--marker <MARKER>] [--sort <SORT>]
[--type RESOURCE_TYPE]
queryPositional arguments
- query
A query to filter resource. The syntax is a
combination of attribute, operator and value. For
example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would
filter resource with a certain id. More complex
queries can be built, e.g.: not (flavor_id!="1" and
memory>=24). Use "" to force data to be interpreted as
string. Supported operators are: not, and, ∧ or, ∨,
>=, <=, !=, >, <, =, ==, eq, ne, lt, gt, ge, le, in,
like, ≠, ≥, ≤, like, in.
Optional arguments
- -h, --help
show this help message and exit
- --details
Show all attributes of generic resources
- --history
Show history of the resources
- --limit <LIMIT>
Number of resources to return (Default is server
default)
- --marker <MARKER>
Last item of the previous listing. Return the next
results after this value
- --sort <SORT>
Sort of resource attribute (example: user_id:desc-
nullslast
- --type RESOURCE_TYPE, -t RESOURCE_TYPE
Type of resource
14.31. gnocchi resource show
usage: gnocchi resource show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--noindent]
[--prefix PREFIX] [--type RESOURCE_TYPE]
resource_idPositional arguments
- resource_id
ID of a resource
Optional arguments
- -h, --help
show this help message and exit
- --type RESOURCE_TYPE, -t RESOURCE_TYPE
Type of resource
14.32. gnocchi resource update
usage: gnocchi resource update [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--type RESOURCE_TYPE] [-a ATTRIBUTE]
[-m ADD_METRIC] [-n CREATE_METRIC]
[-d DELETE_METRIC]
resource_idPositional arguments
- resource_id
ID of the resource
Optional arguments
- -h, --help
show this help message and exit
- --type RESOURCE_TYPE, -t RESOURCE_TYPE
Type of resource
- -a ATTRIBUTE, --attribute ATTRIBUTE
name and value of an attribute separated with a ':'
- -m ADD_METRIC, --add-metric ADD_METRIC
name:id of a metric to add
- -n CREATE_METRIC, --create-metric CREATE_METRIC
name:archive_policy_name of a metric to create
- -d DELETE_METRIC, --delete-metric DELETE_METRIC
Name of a metric to delete
14.33. gnocchi resource-type create
usage: gnocchi resource-type create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[-a ATTRIBUTE]
namePositional arguments
- name
name of the resource type
Optional arguments
- -h, --help
show this help message and exit
- -a ATTRIBUTE, --attribute ATTRIBUTE
attribute definition, attribute_name:attribute_type:at
tribute_is_required:attribute_type_option_name=attribu
te_type_option_value:… For example:
display_name:string:true:max_length=255
14.34. gnocchi resource-type delete
usage: gnocchi resource-type delete [-h] name
Positional arguments
- name
name of the resource type
Optional arguments
- -h, --help
show this help message and exit
14.35. gnocchi resource-type list
usage: gnocchi resource-type list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]Optional arguments
- -h, --help
show this help message and exit
14.36. gnocchi resource-type show
usage: gnocchi resource-type show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
namePositional arguments
- name
name of the resource type
Optional arguments
- -h, --help
show this help message and exit
14.37. gnocchi status
usage: gnocchi status [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent] [--prefix PREFIX]Optional arguments
- -h, --help
show this help message and exit
