kube-state-metrics icon indicating copy to clipboard operation
kube-state-metrics copied to clipboard

docs: Add guide on how to debug CustomStateMetrics feature quickly

Open CatherineF-dev opened this issue 1 year ago • 8 comments

What this PR does / why we need it:

More and more bugs are opened for CustomStateMetrics feature. This will help users to debug CustomStateMetrics by themselves quicker.

How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

CatherineF-dev avatar Jan 11 '24 14:01 CatherineF-dev

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: CatherineF-dev Once this PR has been reviewed and has the lgtm label, please assign mrueg for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jan 11 '24 14:01 k8s-ci-robot

/assign @rexagod /triage accepted

dashpole avatar Jan 11 '24 17:01 dashpole

The change seems fairly straight-forward. I'd suggest adding a section demonstrating the usage of https://github.com/go-delve/delve to catch contexts at breakpoints set by the user.

rexagod avatar Jan 17 '24 13:01 rexagod

Could you add how to use some debugging tools in another PR? I don't use delve recently

Not everyone knows minikube. Could we merge this?

CatherineF-dev avatar Jan 17 '24 13:01 CatherineF-dev

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Apr 23 '24 13:04 k8s-triage-robot

/remove-lifecycle stale

CatherineF-dev avatar Apr 23 '24 14:04 CatherineF-dev

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jul 22 '24 14:07 k8s-triage-robot