fix: fix configuration and remove uneeded libs

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
This commit is contained in:
Paulo Dias 2024-12-06 17:58:21 +00:00
parent a90aa34e71
commit 713903fe48
No known key found for this signature in database
GPG key ID: CE1937300CB848AA
2 changed files with 3 additions and 5 deletions

View file

@ -16,7 +16,6 @@ package openstack
import (
"context"
"fmt"
"log"
"log/slog"
"net"
"strconv"
@ -120,7 +119,6 @@ func (i *LoadBalancerDiscovery) refresh(ctx context.Context) ([]*targetgroup.Gro
// Fetch all floating IPs with pagination
fipPages, err := floatingips.List(networkClient, floatingips.ListOpts{}).AllPages()
if err != nil {
log.Printf("Error calling OpenStack API: %v", err)
return nil, fmt.Errorf("failed to list all fips: %w", err)
}
if err != nil {

View file

@ -1197,9 +1197,9 @@ The following meta labels are available on targets during [relabeling](#relabel_
#### `loadbalancer`
The `loadbalancer` role discovers one target per `PROMETHEUS` listener of
Octavia loa dbalancer. The target address defaults to the VIP address of the
load balancer.
The `loadbalancer` role discovers one target per Octavia loadbalancer with a
`PROMETHEUS` listener. The target address defaults to the VIP address
of the load balancer.
The following meta labels are available on targets during [relabeling](#relabel_config):