Add share create/delete/expand/shrink meters
Partially-Implements: blueprint manila-meters Change-Id: Iaeb1e1ffc2b9c5f6e93f68f8b319066335781377
This commit is contained in:
parent
a7a6fbf9a9
commit
d89b6c3b4c
@ -338,3 +338,22 @@ metric:
|
||||
service_id: $.payload.service_id
|
||||
instance_type: $.payload.instance_type
|
||||
instance_type_id: $.payload.instance_type_id
|
||||
|
||||
# Manila
|
||||
- name: 'manila.share.size'
|
||||
event_type:
|
||||
- 'share.create.*'
|
||||
- 'share.delete.*'
|
||||
- 'share.extend.*'
|
||||
- 'share.shrink.*'
|
||||
type: 'gauge'
|
||||
unit: 'GB'
|
||||
volume: $.payload.size
|
||||
user_id: $.payload.user_id
|
||||
project_id: $.payload.project_id
|
||||
resource_id: $.payload.share_id
|
||||
metadata:
|
||||
name: $.payload.name
|
||||
host: $.payload.host
|
||||
availability_zone: $.payload.availability_zone
|
||||
status: $.payload.status
|
||||
|
@ -235,3 +235,12 @@ resources:
|
||||
- 'compute.node.cpu.user.time'
|
||||
attributes:
|
||||
host_name: resource_metadata.host
|
||||
|
||||
- resource_type: manila_share
|
||||
metrics:
|
||||
- 'manila.share.size'
|
||||
attributes:
|
||||
name: resource_metadata.name
|
||||
host: resource_metadata.host
|
||||
availability_zone: resource_metadata.availability_zone
|
||||
status: resource_metadata.status
|
||||
|
@ -126,6 +126,22 @@ resources_update_operations = [
|
||||
"data": [{
|
||||
"attributes": {"host_name": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True}}
|
||||
}]},
|
||||
{"desc": "add manila share type",
|
||||
"type": "create_resource_type",
|
||||
"resource_type": "manila_share",
|
||||
"data": [{
|
||||
"attributes": {"name": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True},
|
||||
"host": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True},
|
||||
"availability_zone": {"type": "string",
|
||||
"min_length": 0,
|
||||
"max_length": 255,
|
||||
"required": True},
|
||||
"status": {"type": "string", "min_length": 0,
|
||||
"max_length": 255,
|
||||
"required": True}}
|
||||
}]}
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user