-
Notifications
You must be signed in to change notification settings - Fork 65
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
add metrics endpoint to monitor API requests #831
Comments
Sounds like a good feature. Would you be able to do a PR? We can support you there but lack currently the resources to focus on this. |
My time is also currently limited. I'll try and see what I can do. |
For the hcloud-go client you need to call |
We just discovered that its not possible right now to have multiple instrumented clients on the same registry: hetznercloud/hcloud-go#288 Working on a fix though. |
Hey all :) the metrics endpoint already exists in beta.22, it just binds to localhost and is not enumerated in the $ kubectl port-forward -n caph-system deployments/caph-controller-manager 8080:8080
$ curl localhost:8080/metrics | tail
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 70717 0 70717 0 0 750k 0 --:--:-- --:--:-- --:--:-- 758k
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="9.999999999999999e-06"} 0
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="9.999999999999999e-05"} 0
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="0.001"} 3
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="0.01"} 21
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="0.1"} 21
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="1"} 78
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="10"} 111
workqueue_work_duration_seconds_bucket{name="hetznercluster",le="+Inf"} 111
workqueue_work_duration_seconds_sum{name="hetznercluster"} 97.379931617
workqueue_work_duration_seconds_count{name="hetznercluster"} 111 Adding the metrics for I will create a PR for the Not sure if we want a "world-readable" metrics endpoint by default, there is an open CAPI discussion (kubernetes-sigs/cluster-api#7957) as well as a new controller-runtime feature (kubernetes-sigs/controller-runtime#2407) related to this. |
closing because this is already merged |
/kind feature
Describe the solution you'd like
I would like a metrics endpoint for data like
hcloud_api_requests_total
, so that the API requests to Hetzner can be monitored.Anything else you would like to add:
Similar endpoints are implemented for hcloud-cloud-controller-manager and csi-driver.
The text was updated successfully, but these errors were encountered: