-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(service): add kube_service_ports metric #2607
base: main
Are you sure you want to change the base?
feat(service): add kube_service_ports metric #2607
Conversation
|
Signed-off-by: nahuel11500 <[email protected]>
a793b16
to
37e3690
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: maxime1907, nahuel11500 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hello, any thought on this ? @mrueg @dgrisonnet Thank you |
/triage accepted |
Hello, sorry to bother, any update on this ? @dgrisonnet Thank you |
"", | ||
wrapSvcFunc(func(e *v1.Service) *metric.Family { | ||
ms := []*metric.Metric{} | ||
labelKeys := []string{"port_protocol", "port_number", "port_name", "port_target", "port_node_number", "port_app_protocol"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has the cardinality issue.
Also, could you share what's the use case of this metric? Which alert will be added for this metric?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
Thanks for your answer.
For our use case, we want to implement a dashboard that can show the different ports available on a service. And then connect more easily on them with Telepresence.
Regarding the cardinality issue, while we understand the concern, we believe it should be manageable.
What this PR does / why we need it:
Adds a simple metric kube_service_ports so that we can get details about the ports exposed by services.
How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
increases