correct volumes name source
- cinder has volume's name under volume attribute in v2[1] and v3[2]. display_name only exists in v1 and notifications - add backup.* notifications - specifically capture display_name - specifically capture volume_type [1] http://developer.openstack.org/api-ref/block-storage/v2/?expanded=show-volume-details-detail,show-snapshot-details-detail,show-backup-details-detail [2] http://developer.openstack.org/api-ref/block-storage/v3/?expanded=show-backup-detail-detail,list-snapshots-and-details-detail,show-a-volume-s-details-detail Change-Id: I9cbec274571b69a0a03da043614d50a67742d85f
This commit is contained in:
parent
407b726fc2
commit
5928617512
@ -192,7 +192,7 @@ resources:
|
||||
- 'snapshot.size'
|
||||
- 'volume.snapshot.size'
|
||||
attributes:
|
||||
display_name: resource_metadata.display_name
|
||||
display_name: resource_metadata.(display_name|name)
|
||||
event_delete: volume.delete.start
|
||||
event_attributes:
|
||||
id: resource_id
|
||||
|
@ -45,6 +45,9 @@ metric:
|
||||
user_id: $.payload.user_id
|
||||
project_id: $.payload.tenant_id
|
||||
resource_id: $.payload.volume_id
|
||||
metadata:
|
||||
display_name: $.payload.display_name
|
||||
volume_type: $.payload.volume_type
|
||||
|
||||
- name: 'snapshot.size'
|
||||
event_type:
|
||||
@ -57,6 +60,23 @@ metric:
|
||||
user_id: $.payload.user_id
|
||||
project_id: $.payload.tenant_id
|
||||
resource_id: $.payload.snapshot_id
|
||||
metadata:
|
||||
display_name: $.payload.display_name
|
||||
|
||||
- name: 'backup.size'
|
||||
event_type:
|
||||
- 'backup.exists'
|
||||
- 'backup.create.*'
|
||||
- 'backup.delete.*'
|
||||
- 'backup.restore.*'
|
||||
type: 'gauge'
|
||||
unit: 'GB'
|
||||
volume: $.payload.size
|
||||
user_id: $.payload.user_id
|
||||
project_id: $.payload.tenant_id
|
||||
resource_id: $.payload.backup_id
|
||||
metadata:
|
||||
display_name: $.payload.display_name
|
||||
|
||||
# Magnum
|
||||
- name: $.payload.metrics.[*].name
|
||||
|
Loading…
x
Reference in New Issue
Block a user