You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This annotation is automatically added and it contains the Octavia's Virtual-IP (VIP).
270
+
251
271
-`loadbalancer.openstack.org/node-selector`
252
272
253
273
A set of key=value annotations used to filter nodes for targeting by the load balancer. When defined, only nodes that match all the specified key=value annotations will be targeted. If an annotation includes only a key without a value, the filter will check only for the existence of the key on the node. If the value is not set, the `node-selector` value defined in the OCCM configuration is applied.
@@ -644,3 +664,64 @@ is not yet supported by OCCM.
644
664
Internally, OCCM would automatically look for IPv4 or IPv6 subnet to allocate the load balancer
645
665
address from based on the service's address family preference. If the subnet with preferred
646
666
address family is not available, load balancer can not be created.
667
+
668
+
### Metric endpoint configuration
669
+
670
+
Since Octavia v2.25, Octavia proposes to expose an HTTP Prometheus endpoint. Using the annotation `loadbalancer.openstack.org/metrics-enable`, you will be able to configure this endpoint on the LoadBalancer:
671
+
672
+
```yaml
673
+
kind: Service
674
+
apiVersion: v1
675
+
metadata:
676
+
name: service-with-metric
677
+
namespace: default
678
+
annotations:
679
+
loadbalancer.openstack.org/metrics-enable: "true" # Enable the listener endpoint on the Octavia LoadBalancer (default false)
680
+
loadbalancer.openstack.org/metrics-port: "9100" # Listener's port (default 9100)
> This configuration use the `loadbalancer.openstack.org/load-balancer-vip-address` annotation that will use the Octavia's VIP to fetch the metric endpoint. Adapt it to your Octavia deployment.
720
+
721
+
For more information: https://docs.openstack.org/octavia/latest/user/guides/monitoring.html#monitoring-with-prometheus
722
+
723
+
Grafana dashboard for Octavia Amphora: https://grafana.com/grafana/dashboards/15828-openstack-octavia-amphora-load-balancer/
If the Octavia LoadBalancer is exposed with a public IP, the Prometheus listener is also exposed (at least for Amphora). Even if no critical data are exposed by this endpoint, __it's strongly recommended to apply an allowed cidrs on the listener__ via the annotation `loadbalancer.openstack.org/metrics-allow-cidrs`.
0 commit comments