Add documentation on nova user defined metadata
This change add explaination about the special 'metering.' nova metadata. DocImpact Change-Id: Ia87da80fb63eb7a7559e5a5a41182ba51653c520
This commit is contained in:
parent
48e4250845
commit
71e417263d
@ -187,3 +187,17 @@ If you plan on adding meters, please follow the convention bellow:
|
|||||||
For example do not use <type>.image but image:<type>, where type is your variable name.
|
For example do not use <type>.image but image:<type>, where type is your variable name.
|
||||||
|
|
||||||
3. If you have any hesitation, come and ask in #openstack-metering
|
3. If you have any hesitation, come and ask in #openstack-metering
|
||||||
|
|
||||||
|
|
||||||
|
User-defined sample metadata (nova only)
|
||||||
|
=========================================
|
||||||
|
|
||||||
|
Users are allowed to add additional metadata to samples of nova meter.
|
||||||
|
These additional metadata are stored in 'resource_metadata.user_metadata.*' of the sample
|
||||||
|
To do so, users should add nova user metadata prefixed with 'metering.':
|
||||||
|
|
||||||
|
::
|
||||||
|
$ nova boot --meta metering.custom_metadata=a_value my_vm
|
||||||
|
|
||||||
|
Note: The name of the metadata shouldn't exceed 256 characters otherwise it will be cut off.
|
||||||
|
Also, if it has '.', this will be replaced by a '_' in ceilometer.
|
||||||
|
Loading…
Reference in New Issue
Block a user