Add loadbalancer resource type.

Adds the loadbalancer resource type for usage
with the network.services.lb.* metrics.

Depends-On: https://review.opendev.org/#/c/695855/
Change-Id: Ib6e78438c3da0e22d93f720f00cdeadf0ed7a91f
Closes-Bug: #1848286
Signed-off-by: Jorge Niedbalski <jnr@metaklass.org>
This commit is contained in:
Jorge Niedbalski 2019-11-07 18:30:22 -03:00 committed by Lingxian Kong
parent 824be970df
commit 18e9bb957b
2 changed files with 18 additions and 0 deletions

View File

@ -224,6 +224,12 @@ resources_update_operations = [
{"op": "add", "path": "/attributes/instance_id",
"value": {"type": "uuid", "required": False}},
]},
{"desc": "add loadbalancer resource type",
"type": "create_resource_type",
"resource_type": "loadbalancer",
"data": [{
"attributes": {}
}]},
]
# NOTE(sileht): We use LooseVersion because pbr can generate invalid

View File

@ -386,3 +386,15 @@ resources:
attributes:
controller: resource_metadata.controller
switch: resource_metadata.switch
- resource_type: loadbalancer
metrics:
network.services.lb.outgoing.bytes:
network.services.lb.incoming.bytes:
network.services.lb.pool:
network.services.lb.listener:
network.services.lb.member:
network.services.lb.health_monitor:
network.services.lb.loadbalancer:
network.services.lb.total.connections:
network.services.lb.active.connections: