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:
Luka Peschke 2019-03-25 11:43:53 +01:00
parent 7c7ff81cd9
commit 4cfc06c4b6

View File

@ -4,9 +4,10 @@ metrics:
alt_name: instance
groupby:
- id
- user_id
- project_id
metadata:
- flavor
- flavor_name
- flavor_id
- vcpus
mutate: NUMBOOL
@ -19,6 +20,7 @@ metrics:
factor: 1/1048576
groupby:
- id
- user_id
- project_id
metadata:
- container_format
@ -31,6 +33,7 @@ metrics:
unit: GiB
groupby:
- id
- user_id
- project_id
metadata:
- volume_type
@ -38,24 +41,28 @@ metrics:
aggregation_method: mean
resource_type: volume
network.outgoing.bytes:
network.outgoing.bytes.rate:
unit: MB
groupby:
- id
- project_id
factor: 1/1000000
- user_id
# Converting B/s to MB/h
factor: 3600/1000000
metadata:
- instance_id
extra_args:
aggregation_method: mean
resource_type: instance_network_interface
network.incoming.bytes:
network.incoming.bytes.rate:
unit: MB
groupby:
- id
- project_id
factor: 1/1000000
- user_id
# Converting B/s to MB/h
factor: 3600/1000000
metadata:
- instance_id
extra_args:
@ -66,6 +73,7 @@ metrics:
unit: ip
groupby:
- id
- user_id
- project_id
metadata:
- state
@ -78,6 +86,7 @@ metrics:
unit: GiB
groupby:
- id
- user_id
- project_id
factor: 1/1073741824
extra_args: