Update the default metrics.yml file
Work items: - Added "user_id" to default groupby attributes - Replaced "flavor" metadata by "flavor_name" for instances (it is the default attribute name in gnocchi) - Replaced network.incoming/outgoing.bytes by network.incoming/outgoing.bytes.rate. The previous metrics were cumulative, whereas the new ones are rates. Change-Id: I55271bfbdd5a3457bea249dbefefd93a78ee057e
This commit is contained in:
parent
7c7ff81cd9
commit
4cfc06c4b6
@ -4,9 +4,10 @@ metrics:
|
|||||||
alt_name: instance
|
alt_name: instance
|
||||||
groupby:
|
groupby:
|
||||||
- id
|
- id
|
||||||
|
- user_id
|
||||||
- project_id
|
- project_id
|
||||||
metadata:
|
metadata:
|
||||||
- flavor
|
- flavor_name
|
||||||
- flavor_id
|
- flavor_id
|
||||||
- vcpus
|
- vcpus
|
||||||
mutate: NUMBOOL
|
mutate: NUMBOOL
|
||||||
@ -19,6 +20,7 @@ metrics:
|
|||||||
factor: 1/1048576
|
factor: 1/1048576
|
||||||
groupby:
|
groupby:
|
||||||
- id
|
- id
|
||||||
|
- user_id
|
||||||
- project_id
|
- project_id
|
||||||
metadata:
|
metadata:
|
||||||
- container_format
|
- container_format
|
||||||
@ -31,6 +33,7 @@ metrics:
|
|||||||
unit: GiB
|
unit: GiB
|
||||||
groupby:
|
groupby:
|
||||||
- id
|
- id
|
||||||
|
- user_id
|
||||||
- project_id
|
- project_id
|
||||||
metadata:
|
metadata:
|
||||||
- volume_type
|
- volume_type
|
||||||
@ -38,24 +41,28 @@ metrics:
|
|||||||
aggregation_method: mean
|
aggregation_method: mean
|
||||||
resource_type: volume
|
resource_type: volume
|
||||||
|
|
||||||
network.outgoing.bytes:
|
network.outgoing.bytes.rate:
|
||||||
unit: MB
|
unit: MB
|
||||||
groupby:
|
groupby:
|
||||||
- id
|
- id
|
||||||
- project_id
|
- project_id
|
||||||
factor: 1/1000000
|
- user_id
|
||||||
|
# Converting B/s to MB/h
|
||||||
|
factor: 3600/1000000
|
||||||
metadata:
|
metadata:
|
||||||
- instance_id
|
- instance_id
|
||||||
extra_args:
|
extra_args:
|
||||||
aggregation_method: mean
|
aggregation_method: mean
|
||||||
resource_type: instance_network_interface
|
resource_type: instance_network_interface
|
||||||
|
|
||||||
network.incoming.bytes:
|
network.incoming.bytes.rate:
|
||||||
unit: MB
|
unit: MB
|
||||||
groupby:
|
groupby:
|
||||||
- id
|
- id
|
||||||
- project_id
|
- project_id
|
||||||
factor: 1/1000000
|
- user_id
|
||||||
|
# Converting B/s to MB/h
|
||||||
|
factor: 3600/1000000
|
||||||
metadata:
|
metadata:
|
||||||
- instance_id
|
- instance_id
|
||||||
extra_args:
|
extra_args:
|
||||||
@ -66,6 +73,7 @@ metrics:
|
|||||||
unit: ip
|
unit: ip
|
||||||
groupby:
|
groupby:
|
||||||
- id
|
- id
|
||||||
|
- user_id
|
||||||
- project_id
|
- project_id
|
||||||
metadata:
|
metadata:
|
||||||
- state
|
- state
|
||||||
@ -78,6 +86,7 @@ metrics:
|
|||||||
unit: GiB
|
unit: GiB
|
||||||
groupby:
|
groupby:
|
||||||
- id
|
- id
|
||||||
|
- user_id
|
||||||
- project_id
|
- project_id
|
||||||
factor: 1/1073741824
|
factor: 1/1073741824
|
||||||
extra_args:
|
extra_args:
|
||||||
|
Loading…
Reference in New Issue
Block a user