-
Notifications
You must be signed in to change notification settings - Fork 40.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
add metrics for insecure backend proxy #97814
Conversation
Namespace: namespace, | ||
Subsystem: subsystem, | ||
Name: "pods_logs_insecure_backend", | ||
Help: "Total number of requests for pods/logs sliced by usage type: enforce_tls, skip_tls_allowed, skip_tls_denied", |
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.
let's talk about metric shape. Do we like this. Cardinality is fairly low and I think it tells me whether people are using or want to use it and aren't allowed.
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.
Yeah that seems okay to me.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Namespace: namespace, | ||
Subsystem: subsystem, | ||
Name: "pods_logs_backend_tls_failure", | ||
Help: "Total number of requests for pods/logs that failed due to kubelet server TLS verification", |
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.
We can only catch these for the cases where a secure connection is requested (the default), but it provides a max number of cases where the call would have been useful.
This being high indicates something is misconfigured in your cluster. Users should not be expected set a skip backend tls verify .
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.
yeah this seems alertable, so lgtm
fb6a57e
to
c50da84
Compare
/assign @logicalhan @tkashem |
/retest |
/triage accepted |
Namespace: namespace, | ||
Subsystem: subsystem, | ||
Name: "pods_logs_backend_tls_failure", | ||
Help: "Total number of requests for pods/logs that failed due to kubelet server TLS verification", |
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.
nit: is it pods/log
or pods/logs
or are both accepted?
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.
nit: is it
pods/log
orpods/logs
or are both accepted?
pods/logs
@deads2k question: is this something that can expand to other resources in the future? If there is a possibility then perhaps we can rename the metrics to |
Good question. I think that we're fairly unlikely to support other subresources skipping a backend tls failure because clients send data out. If we do so, then we should tweak for consistency. |
c50da84
to
782a7a5
Compare
LGTM (giving others chance to review) |
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.
from an instrumentation perspective, these look okay to me.
/lgtm
Namespace: namespace, | ||
Subsystem: subsystem, | ||
Name: "pods_logs_insecure_backend", | ||
Help: "Total number of requests for pods/logs sliced by usage type: enforce_tls, skip_tls_allowed, skip_tls_denied", |
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.
Yeah that seems okay to me.
Namespace: namespace, | ||
Subsystem: subsystem, | ||
Name: "pods_logs_backend_tls_failure", | ||
Help: "Total number of requests for pods/logs that failed due to kubelet server TLS verification", |
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.
yeah this seems alertable, so lgtm
add metrics to measure usage and frequency of backend tls failures on pod/logs calls.
/priority important-soon
/kind cleanup
@kubernetes/sig-auth-pr-reviews