-
Notifications
You must be signed in to change notification settings - Fork 298
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
chore: add labels to metrics #1433
base: main
Are you sure you want to change the base?
chore: add labels to metrics #1433
Conversation
Hi @Suraiya-Hameed. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Suraiya-Hameed 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 |
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.
/ok-to-test
@aramase is there anything I should do about the |
Nothing you need to do. It seems to be a flake with cluster creation. |
/retest-required |
@aramase gentle nudge to review this PR. |
/assign nilekhc |
05df2a7
to
7eb8f38
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1433 +/- ##
==========================================
- Coverage 36.51% 36.00% -0.52%
==========================================
Files 63 64 +1
Lines 4532 3791 -741
==========================================
- Hits 1655 1365 -290
+ Misses 2732 2282 -450
+ Partials 145 144 -1 ☔ View full report in Codecov by Sentry. |
38a5332
to
4fb19fa
Compare
08dd07f
to
525f176
Compare
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. 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-sigs/prow repository. |
/reopen |
@hakman: Reopened this PR. 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-sigs/prow repository. |
/remove-lifecycle rotten |
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.
Just 1 comment about not partitioning sync metrics on the os runtime attribute.
func (r reporter) ReportSyncSecretCtMetric(ctx context.Context, provider, namespace, spc string) { | ||
opt := metric.WithAttributes( | ||
attribute.Key(providerKey).String(provider), | ||
attribute.Key(osTypeKey).String(runtimeOS), |
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.
attribute.Key(osTypeKey).String(runtimeOS), |
The os key attribute is not relevant for the sync controller because it's a Kubernetes API object. The only reason it's used in driver metrics is to show the os runtime for the mount operation.
opt := metric.WithAttributes( | ||
attribute.Key(osTypeKey).String(runtimeOS), |
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.
same comment as above
@@ -251,13 +251,16 @@ func (r *Reconciler) reconcile(ctx context.Context, spcps *secretsstorev1.Secret | |||
// after the provider mount request is complete | |||
var requiresUpdate bool | |||
var providerName string | |||
podName := spcps.Status.PodName | |||
podNamespace := spcps.Namespace | |||
secretProviderClass := spcps.Status.SecretProviderClassName |
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.
secretProviderClass := spcps.Status.SecretProviderClassName | |
secretProviderClassName := spcps.Status.SecretProviderClassName |
Original work by @Suraiya-Hameed in kubernetes-sigs#1433 Changes: - Minor refinements suggested by project maintainers Co-authored-by: Suraiya Hameed <Suraiya-Hameed@users.noreply.github.com>
Original work by @Suraiya-Hameed in kubernetes-sigs#1433 Changes: - Minor refinements suggested by project maintainers Co-authored-by: Suraiya Hameed <Suraiya-Hameed@users.noreply.github.com>
Original work by @Suraiya-Hameed in kubernetes-sigs#1433
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
What type of PR is this?
/kind feature
/kind documentation
What this PR does / why we need it:
pod_name
,pod_namespace
andsecret_provider_class
to the existing metrics.Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #1344
Special notes for your reviewer:
TODOs: