Gnocchi support for SDN controller meters
Change-Id: Ice633b842698b3ed69676686bfc75e60e5690624 Implements: blueprint network-statistics-from-opendaylight
This commit is contained in:
parent
ae0716c6d0
commit
5621e1cc32
@ -244,3 +244,52 @@ resources:
|
||||
host: resource_metadata.host
|
||||
availability_zone: resource_metadata.availability_zone
|
||||
status: resource_metadata.status
|
||||
|
||||
- resource_type: switch
|
||||
metrics:
|
||||
- 'switch'
|
||||
- 'switch.ports'
|
||||
attributes:
|
||||
controller: resource_metadata.controller
|
||||
|
||||
- resource_type: switch_port
|
||||
metrics:
|
||||
- 'switch.port'
|
||||
- 'switch.port.uptime'
|
||||
- 'switch.port.receive.packets'
|
||||
- 'switch.port.transmit.packets'
|
||||
- 'switch.port.receive.bytes'
|
||||
- 'switch.port.transmit.bytes'
|
||||
- 'switch.port.receive.drops'
|
||||
- 'switch.port.transmit.drops'
|
||||
- 'switch.port.receive.errors'
|
||||
- 'switch.port.transmit.errors'
|
||||
- 'switch.port.receive.frame_error'
|
||||
- 'switch.port.receive.overrun_error'
|
||||
- 'switch.port.receive.crc_error'
|
||||
- 'switch.port.collision.count'
|
||||
attributes:
|
||||
switch: resource_metadata.switch
|
||||
port_number_on_switch: resource_metadata.port_number_on_switch
|
||||
neutron_port_id: resource_metadata.neutron_port_id
|
||||
controller: resource_metadata.controller
|
||||
|
||||
- resource_type: port
|
||||
metrics:
|
||||
- 'port'
|
||||
- 'port.uptime'
|
||||
- 'port.receive.packets'
|
||||
- 'port.transmit.packets'
|
||||
- 'port.receive.bytes'
|
||||
- 'port.transmit.bytes'
|
||||
- 'port.receive.drops'
|
||||
- 'port.receive.errors'
|
||||
attributes:
|
||||
controller: resource_metadata.controller
|
||||
|
||||
- resource_type: switch_table
|
||||
metrics:
|
||||
- 'switch.table.active.entries'
|
||||
attributes:
|
||||
controller: resource_metadata.controller
|
||||
switch: resource_metadata.switch
|
||||
|
@ -142,7 +142,46 @@ resources_update_operations = [
|
||||
"status": {"type": "string", "min_length": 0,
|
||||
"max_length": 255,
|
||||
"required": True}}
|
||||
}]}
|
||||
}]},
|
||||
{"desc": "add switch resource type",
|
||||
"type": "create_resource_type",
|
||||
"resource_type": "switch",
|
||||
"data": [{
|
||||
"attributes": {"controller": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True}}
|
||||
}]},
|
||||
{"desc": "add switch_port resource type",
|
||||
"type": "create_resource_type",
|
||||
"resource_type": "switch_port",
|
||||
"data": [{
|
||||
"attributes": {"switch": {"type": "string", "min_length": 0,
|
||||
"max_length": 64, "required": True},
|
||||
"port_number_on_switch": {"type": "number", "min": 0,
|
||||
"max": 4294967295,
|
||||
"required": False},
|
||||
"neutron_port_id": {"type": "string",
|
||||
"min_length": 0,
|
||||
"max_length": 255,
|
||||
"required": False},
|
||||
"controller": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True}}
|
||||
}]},
|
||||
{"desc": "add port resource type",
|
||||
"type": "create_resource_type",
|
||||
"resource_type": "port",
|
||||
"data": [{
|
||||
"attributes": {"controller": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True}}
|
||||
}]},
|
||||
{"desc": "add switch_table resource type",
|
||||
"type": "create_resource_type",
|
||||
"resource_type": "switch_table",
|
||||
"data": [{
|
||||
"attributes": {"switch": {"type": "string", "min_length": 0,
|
||||
"max_length": 64, "required": True},
|
||||
"controller": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True}}
|
||||
}]},
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user