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
Bug 1874521: connectivity check metrics cannot be aggregated across components #933
Bug 1874521: connectivity check metrics cannot be aggregated across components #933
Conversation
5fdbb84
to
fc3699d
Compare
/test verify-deps |
fc3699d
to
a47e15b
Compare
/test images |
The metric naming convention followed by k8s is `{namespace}_{sub system}_name what do you think about renaming the metrics to
We are already using the label value |
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.
looks good, just have a couple of minor comments.
func (m *metricsContext) getCounterMetricLabels(targetEndpoint string, latency *trace.LatencyInfo, checkErr error) map[string]string { | ||
labels := m.getMetricLabels(targetEndpoint) | ||
labels["dnsResolve"] = "" | ||
labels["tcpConnect"] = "" |
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 think about choosing a non-empty value to indicate the default/initial condition? In general, it's safer to avoid an empty string - no need to worry about how prometheus handles non existing and empty label.
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 https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels:
A label with an empty label value is considered equivalent to a label that does not exist.
/test images |
|
/lgtm |
/test e2e-aws-upgrade |
4 similar comments
/test e2e-aws-upgrade |
/test e2e-aws-upgrade |
/test e2e-aws-upgrade |
/test e2e-aws-upgrade |
@sanchezl: This pull request references Bugzilla bug 1874521, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@sanchezl: This pull request references Bugzilla bug 1874521, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@sanchezl: This pull request references Bugzilla bug 1874521, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, sanchezl, tkashem 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
@sanchezl: All pull requests linked via external trackers have merged: Bugzilla bug 1874521 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Implement changes to the metric names and labels as discovered during reviews for better usability.
endpoint
labels renamed totargetEndpoint
to avoid collisions with default label of the same name.component
label added (e.g. openshift-kube-apiserver or openshift-apiserver)checkName
label added