Browse Source

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>
changes/29/695729/2
Jorge Niedbalski 3 months ago
parent
commit
00ba87d114
2 changed files with 18 additions and 0 deletions
  1. +6
    -0
      ceilometer/gnocchi_client.py
  2. +12
    -0
      ceilometer/publisher/data/gnocchi_resources.yaml

+ 6
- 0
ceilometer/gnocchi_client.py 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

+ 12
- 0
ceilometer/publisher/data/gnocchi_resources.yaml View File

@@ -371,3 +371,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:

Loading…
Cancel
Save