Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose listener metrics #137

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

schreibergeorg
Copy link
Member

@schreibergeorg schreibergeorg commented Dec 19, 2023

this pr exposes the listener metrics: id, name, port, protocol and the assigned loadbalancer_id

# HELP kos_listener_status Listener status
# TYPE kos_listener_status gauge
kos_listener_status{id="0",loadbalancer_id="1",name="k8s-clusterapi-cluster-kubeapi-6443",port="TCP",protocol="6443",status="ACTIVE"} 1
kos_listener_status{id="0",loadbalancer_id="1",name="k8s-clusterapi-cluster-kubeapi-6443",port="TCP",protocol="6443",status="ERROR"} 0
kos_listener_status{id="0",loadbalancer_id="1",name="k8s-clusterapi-cluster-kubeapi-6443",port="TCP",protocol="6443",status="PENDING_CREATE"} 0
kos_listener_status{id="0",loadbalancer_id="1",name="k8s-clusterapi-cluster-kubeapi-6443",port="TCP",protocol="6443",status="PENDING_DELETE"} 0
kos_listener_status{id="0",loadbalancer_id="1",name="k8s-clusterapi-cluster-kubeapi-6443",port="TCP",protocol="6443",status="PENDING_UPDATE"} 0

Georg Schreiber, [email protected],
Mercedes-Benz Tech Innovation GmbH

Provider Information

@@ -252,6 +252,11 @@ func updateMetrics(provider *gophercloud.ProviderClient, eo gophercloud.Endpoint
errs = append(errs, err)
}

if err := metrics.PublishListenerMetrics(loadbalancerClient, tenantID); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be part of PublishLoadBalancerMetrics probably, WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants