Skip to content

Commit

Permalink
add flavorid to lb metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Breuer <fbreuer@pm.me>
  • Loading branch information
breuerfelix committed May 30, 2023
1 parent 231101f commit e32e230
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/helper/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@ func parseLoadBalancerOpenstackMetric(
"portID": "nil",
"floatingID": "nil",
"securityGroupID": "nil",
"flavorID": "nil",
}

if lb.Spec.Infrastructure.Flavor.FlavorID != nil {
labels["flavorID"] = *lb.Spec.Infrastructure.Flavor.FlavorID
}

if lb.Status.PortID != nil {
Expand Down

0 comments on commit e32e230

Please sign in to comment.