Skip to content

Conversation

@jai
Copy link
Contributor

@jai jai commented Jun 21, 2025

Summary

This PR fixes issue #51177 by creating proper documentation for the kubelet Summary API and updating the dead links to point to it.

What type of PR is this?

/kind bug
/kind documentation

What this PR does / why we need it

The PR addresses the dead link issue in the node-metrics.md file where links to /docs/reference/config-api/kubelet-stats.v1alpha1/ were pointing to a non-existent page.

Following Option 2 from the issue discussion, this PR:

  1. Creates a new comprehensive documentation page for the kubelet Summary API at /docs/reference/instrumentation/kubelet-summary-api.md
  2. Updates the broken links in node-metrics.md to point to the new documentation

Which issue(s) this PR fixes

Fixes #51177
[Potentially] fixes kubernetes/kubernetes#131986

Special notes for your reviewer

The new documentation page covers:

  • How to access the Summary API endpoint
  • The structure of the API response
  • Available metrics at node, pod, and container levels
  • Data sources (cAdvisor vs CRI)
  • Common use cases
  • Limitations and migration notes

This approach provides users with comprehensive documentation about the kubelet Summary API rather than just removing the link or pointing to external source code.

🤖 Generated with Claude Code

@k8s-ci-robot k8s-ci-robot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 21, 2025
@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label Jun 21, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign katcosgrove for approval. For more information see the 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 k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 21, 2025
@jai jai force-pushed the fix-kubelet-summary-api-dead-link branch from e1b557e to 6c0b2e4 Compare June 21, 2025 02:01
@jai jai changed the title Fix dead link in node-metrics.md by creating kubelet Summary API documentation docs: add kubelet Summary API documentation and fix broken links Jun 21, 2025
This commit addresses issue 51177 by:
- Creating a new documentation page for the kubelet Summary API at
  /docs/reference/instrumentation/kubelet-summary-api.md
- Updating the broken links in node-metrics.md to point to the new page
  instead of the non-existent /docs/reference/config-api/kubelet-stats.v1alpha1/

The new page provides comprehensive documentation about:
- How to access the Summary API
- The structure of the API response
- Available metrics at node, pod, and container levels
- Common use cases and limitations

This approach follows Option 2 from the issue discussion, creating proper
documentation for the kubelet node stats and pod stats API rather than
just removing the link.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@jai jai force-pushed the fix-kubelet-summary-api-dead-link branch from 6c0b2e4 to fba1c3d Compare June 21, 2025 02:02
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jun 21, 2025
@netlify
Copy link

netlify bot commented Jun 21, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit e1b557e
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/685611d4aab3d1000840a929
😎 Deploy Preview https://deploy-preview-51317--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jun 21, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit cd08ca9
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/68564d7d7ce45f0008a352ea
😎 Deploy Preview https://deploy-preview-51317--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.


## Metrics Categories

### Node-Level Metrics
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these section breakdowns too much detail - should we just mention at a high level across all scopes (Node/Pod/Container)?

@lmktfy
Copy link
Member

lmktfy commented Jun 22, 2025

/kind feature
(we're adding docs)
/remove-kind bug

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. and removed kind/bug Categorizes issue or PR as related to a bug. labels Jun 22, 2025
Copy link
Member

@lmktfy lmktfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a concern about the security advice in this PR. I want to ensure we add a warning (not just a note) about turning off trust anchor checks.

That's the only must-fix thing; other details and suggestions I've made are relevant, but we can skip them or fix them after this PR merges.

@lmktfy
Copy link
Member

lmktfy commented Jun 22, 2025

🤖 Generated with Claude Code

Also, we may not be able to accept this. What copyright license applies to the content produced with Claude?

@jai
Copy link
Contributor Author

jai commented Jun 22, 2025

What copyright license applies to the content produced with Claude?

I believe it's public domain but not sure how to officially prove that.

I can rewrite it if needed of course.

@lmktfy
Copy link
Member

lmktfy commented Jul 4, 2025

Any news on the copyright and licence status?

@jai
Copy link
Contributor Author

jai commented Jul 24, 2025

Any news on the copyright and licence status?

Hey @lmktfy sorry for the radio silence.

Anthropic agrees that Customer (a) retains all rights to its Inputs, and (b) owns its Outputs.
...
Anthropic hereby assigns to Customer its right, title and interest (if any) in and to Outputs.

anthropic commercial terms

They key here is "if any" - it seems US copyright law is not black and white on this and copyright claims are stronger the more a human is involved in the process. Considering I guided most of the implementation and had Claude fill/format, my understanding is that the IP here is vested to me (and from me to the k8s org).

Let me know if this works for us or if I should just re-write/paraphrase all the content manually?

- Convert note to warning box for security concerns about curl --insecure
- Add kubectl authorization comment and API server glossary tooltip
- Update all section headings per style guide (## Data sources, etc.)
- Convert metric lists to Markdown description lists with backticks
- Add container structure to JSON example for clarity
- Update authorization text to be generic (not RBAC-specific)
- Clarify that Summary API returns JSON format only
- Add vertical pod autoscaling link
- Update data format limitation text to mention OpenMetrics/Prometheus
@jai jai requested a review from lmktfy July 24, 2025 05:13
@jai
Copy link
Contributor Author

jai commented Jul 25, 2025

Will check why CI is failing

@jai
Copy link
Contributor Author

jai commented Aug 6, 2025

Will check why CI is failing

Looks like it's a secret detected, unrelated to this change

@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/documentation Categorizes issue or PR as related to documentation. kind/feature Categorizes issue or PR as related to a new feature. language/en Issues or PRs related to English language needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dead link at instrumentation/node-metrics Kubelet metrics definitions?

3 participants