gnocchi: cleanup instance resource definition
Change-Id: I5f953217f616e1c2d62d884fd808746c65a66436
This commit is contained in:
parent
92fb620127
commit
ecc6ad8854
@ -291,6 +291,8 @@ class GnocchiDispatcher(dispatcher.Base):
|
||||
LOG.warn("metric %s is not handled by gnocchi" %
|
||||
metric_name)
|
||||
continue
|
||||
if rd.cfg.get("ignore"):
|
||||
continue
|
||||
|
||||
resource_type = rd.cfg['resource_type']
|
||||
resource = {
|
||||
|
@ -239,19 +239,8 @@ class DispatcherWorkflowTest(base.BaseTestCase,
|
||||
'disk.read.requests.rate', 'disk.write.requests',
|
||||
'disk.write.requests.rate', 'disk.read.bytes',
|
||||
'disk.read.bytes.rate', 'disk.write.bytes',
|
||||
'disk.write.bytes.rate', 'disk.device.read.requests',
|
||||
'disk.device.read.requests.rate', 'disk.device.write.requests',
|
||||
'disk.device.write.requests.rate', 'disk.device.read.bytes',
|
||||
'disk.device.read.bytes.rate', 'disk.device.write.bytes',
|
||||
'disk.device.write.bytes.rate', 'disk.latency', 'disk.iops',
|
||||
'disk.device.latency', 'disk.device.iops', 'disk.capacity',
|
||||
'disk.allocation', 'disk.usage', 'disk.device.capacity',
|
||||
'disk.device.allocation', 'disk.device.usage',
|
||||
'network.outgoing.packets.rate',
|
||||
'network.incoming.packets.rate', 'network.outgoing.packets',
|
||||
'network.incoming.packets', 'network.outgoing.bytes.rate',
|
||||
'network.incoming.bytes.rate', 'network.outgoing.bytes',
|
||||
'network.incoming.bytes'],
|
||||
'disk.write.bytes.rate', 'disk.latency', 'disk.iops',
|
||||
'disk.capacity', 'disk.allocation', 'disk.usage'],
|
||||
resource_type='instance')),
|
||||
('hardware.ipmi.node.power', dict(
|
||||
sample={
|
||||
|
@ -36,15 +36,14 @@ resources:
|
||||
- resource_type: instance
|
||||
metrics:
|
||||
- 'instance'
|
||||
- 'disk.root.size'
|
||||
- 'disk.ephemeral.size'
|
||||
- 'memory'
|
||||
- 'memory.usage'
|
||||
- 'memory.resident'
|
||||
- 'vcpus'
|
||||
- 'cpu'
|
||||
- 'cpu_util'
|
||||
- 'vcpus'
|
||||
- 'disk.root.size'
|
||||
- 'disk.ephemeral.size'
|
||||
- 'disk.read.requests'
|
||||
- 'disk.read.requests.rate'
|
||||
- 'disk.write.requests'
|
||||
@ -53,24 +52,23 @@ resources:
|
||||
- 'disk.read.bytes.rate'
|
||||
- 'disk.write.bytes'
|
||||
- 'disk.write.bytes.rate'
|
||||
- 'disk.device.read.requests'
|
||||
- 'disk.device.read.requests.rate'
|
||||
- 'disk.device.write.requests'
|
||||
- 'disk.device.write.requests.rate'
|
||||
- 'disk.device.read.bytes'
|
||||
- 'disk.device.read.bytes.rate'
|
||||
- 'disk.device.write.bytes'
|
||||
- 'disk.device.write.bytes.rate'
|
||||
- 'disk.latency'
|
||||
- 'disk.iops'
|
||||
- 'disk.device.latency'
|
||||
- 'disk.device.iops'
|
||||
- 'disk.capacity'
|
||||
- 'disk.allocation'
|
||||
- 'disk.usage'
|
||||
- 'disk.device.capacity'
|
||||
- 'disk.device.allocation'
|
||||
- 'disk.device.usage'
|
||||
attributes:
|
||||
host: resource_metadata.host
|
||||
image_ref: resource_metadata.image_ref_url
|
||||
display_name: resource_metadata.display_name
|
||||
flavor_id: resource_metadata.(instance_flavor_id|(flavor.id))
|
||||
server_group: resource_metadata.user_metadata.server_group
|
||||
|
||||
# NOTE(sileht): We are not able the create this resource yet
|
||||
# The resource id looks like: instance-00000001-1880d27c-678f-45bf-98ce-12e21e52a1c7-tap5f58854d-9d
|
||||
- resource_type: instance-network
|
||||
ignore: true
|
||||
metrics:
|
||||
- 'network.outgoing.packets.rate'
|
||||
- 'network.incoming.packets.rate'
|
||||
- 'network.outgoing.packets'
|
||||
@ -79,12 +77,26 @@ resources:
|
||||
- 'network.incoming.bytes.rate'
|
||||
- 'network.outgoing.bytes'
|
||||
- 'network.incoming.bytes'
|
||||
attributes:
|
||||
host: resource_metadata.host
|
||||
image_ref: resource_metadata.image_ref_url
|
||||
display_name: resource_metadata.display_name
|
||||
flavor_id: resource_metadata.(instance_flavor_id|(flavor.id))
|
||||
server_group: resource_metadata.user_metadata.server_group
|
||||
|
||||
|
||||
# NOTE(sileht): We are not able the create this resource yet
|
||||
# The resource id looks like: 1880d27c-678f-45bf-98ce-12e21e52a1c7-hdd
|
||||
- resource_type: instance-disk
|
||||
ignore: true
|
||||
metrics:
|
||||
- 'disk.device.read.requests'
|
||||
- 'disk.device.read.requests.rate'
|
||||
- 'disk.device.write.requests'
|
||||
- 'disk.device.write.requests.rate'
|
||||
- 'disk.device.read.bytes'
|
||||
- 'disk.device.read.bytes.rate'
|
||||
- 'disk.device.write.bytes'
|
||||
- 'disk.device.write.bytes.rate'
|
||||
- 'disk.device.latency'
|
||||
- 'disk.device.iops'
|
||||
- 'disk.device.capacity'
|
||||
- 'disk.device.allocation'
|
||||
- 'disk.device.usage'
|
||||
|
||||
- resource_type: image
|
||||
metrics:
|
||||
|
Loading…
Reference in New Issue
Block a user