Skip to content

how to bring metrics client to use k8s metrics APIs #2229

Closed Answered by camilamacedo86
huanggze asked this question in Support
Discussion options

You must be logged in to vote

Hi @huanggze,

The projects built with the tool are using controller runtime and some metrics are provided by default. See its documentation: https://book.kubebuilder.io/reference/metrics.html

The metrics are exported from the Manager, see:

MetricsBindAddress: metricsAddr,
Port: 9443,

However, if for someone reason you are looking to check how via code implementation you can access the metrics endpoint and check it out you can see how we do it in our e2e tests, see:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants