mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
fix: fix configuration and remove uneeded libs
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
This commit is contained in:
parent
a90aa34e71
commit
713903fe48
|
@ -16,7 +16,6 @@ package openstack
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net"
|
"net"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -120,7 +119,6 @@ func (i *LoadBalancerDiscovery) refresh(ctx context.Context) ([]*targetgroup.Gro
|
||||||
// Fetch all floating IPs with pagination
|
// Fetch all floating IPs with pagination
|
||||||
fipPages, err := floatingips.List(networkClient, floatingips.ListOpts{}).AllPages()
|
fipPages, err := floatingips.List(networkClient, floatingips.ListOpts{}).AllPages()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error calling OpenStack API: %v", err)
|
|
||||||
return nil, fmt.Errorf("failed to list all fips: %w", err)
|
return nil, fmt.Errorf("failed to list all fips: %w", err)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -1197,9 +1197,9 @@ The following meta labels are available on targets during [relabeling](#relabel_
|
||||||
|
|
||||||
#### `loadbalancer`
|
#### `loadbalancer`
|
||||||
|
|
||||||
The `loadbalancer` role discovers one target per `PROMETHEUS` listener of
|
The `loadbalancer` role discovers one target per Octavia loadbalancer with a
|
||||||
Octavia loa dbalancer. The target address defaults to the VIP address of the
|
`PROMETHEUS` listener. The target address defaults to the VIP address
|
||||||
load balancer.
|
of the load balancer.
|
||||||
|
|
||||||
The following meta labels are available on targets during [relabeling](#relabel_config):
|
The following meta labels are available on targets during [relabeling](#relabel_config):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue