Skip to content

Commit

Permalink
add flacor id to metics
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 25, 2023
1 parent 4b677c0 commit 231101f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/helper/loadbalancermachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ func parseLoadBalancerMachineOpenstackInfoMetrics(
"namespace": loadBalancerMachine.Namespace,
"portID": "nil",
"serverID": "nil",
"flavorID": "nil",
}

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

if loadBalancerMachine.Status.DefaultPortID != nil {
Expand Down

0 comments on commit 231101f

Please sign in to comment.