Skip to content
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

[Developer Guide Audit] Instrumentation #5233

Closed
mrbobbytables opened this issue Oct 16, 2020 · 16 comments
Closed

[Developer Guide Audit] Instrumentation #5233

mrbobbytables opened this issue Oct 16, 2020 · 16 comments
Assignees
Labels
area/developer-guide Issues or PRs related to the developer guide kind/documentation Categorizes issue or PR as related to documentation. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation.
Milestone

Comments

@mrbobbytables
Copy link
Member

Documentation is the go-to reference for contributors. Parts of the developer guide have been cited as vastly out of date (e.g. referencing VERY outdated versions of docker). We are asking each SIG that owns a portion of the developer guide to audit their devel guide documentation.

This does not have to include updating it.
(although if you want to, please go ahead 😄 )

If you could, update this issue with items that are out of date or you think should be added to the Instrumentation portion of the devel guide.

Assigning to leads, but please feel free to re-assign and delegate.
/assign @ehashman @logicalhan @brancz @dashpole


Parent Tracking Issue: #5229
/sig instrumentation
/sig contributor-experience
/area developer-guide
/milestone v1.20

@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Oct 16, 2020
@k8s-ci-robot k8s-ci-robot added the sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. label Oct 16, 2020
@k8s-ci-robot k8s-ci-robot added sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. area/developer-guide Issues or PRs related to the developer guide labels Oct 16, 2020
@mrbobbytables mrbobbytables added the kind/documentation Categorizes issue or PR as related to documentation. label Oct 16, 2020
@mrbobbytables
Copy link
Member Author

mrbobbytables commented Oct 21, 2020

Additional Related Item (just stumbled across it):

@ehashman
Copy link
Member

ehashman commented Nov 2, 2020

Overhauling the instrumentation docs is not a trivial thing and I suspect we're unlikely to get this done before doc freeze. I'll add this to our next SIG meeting agenda.

@mrbobbytables
Copy link
Member Author

@ehashman No worries, this is out of band for user facing docs :) This is our devel docs only.

@ehashman
Copy link
Member

ehashman commented Nov 2, 2020

Ah okay! Still, will take time, energy, and careful effort :)

@ehashman
Copy link
Member

@logicalhan will take the lead on the doc review, and we've also identified some other areas for improvement/development in the dev docs.

@mrbobbytables mrbobbytables modified the milestones: v1.20, v1.21 Jan 5, 2021
@sftim
Copy link
Contributor

sftim commented Feb 11, 2021

Very much relevant to kubernetes/contributor-site#204

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 12, 2021
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 11, 2021
@mrbobbytables mrbobbytables modified the milestones: v1.21, v1.22 Jun 22, 2021
@dashpole
Copy link
Contributor

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Jul 15, 2021
@dashpole
Copy link
Contributor

cc @CatherineF-dev

@dashpole
Copy link
Contributor

@CatherineF-dev can you read through the existing documentation, and document what you find confusing, or questions you have about how to contribute? Thanks!

@ehashman
Copy link
Member

also cc @husky-parul who is interested in working on this

@CatherineF-dev
Copy link
Contributor

  1. Optional
    They are a little important, which need reviewed first.
  2. Non-optional
    They are related to formatting/consistency/non-important issues, which could be ignored if it doesn't matter. I marked (Optional) in the title.

If there are other docs need review, please let me know.

@CatherineF-dev
Copy link
Contributor

CatherineF-dev commented Jul 27, 2021

instrumentation.md

1. need descriptions for kind in kube_<kind>_<metric> (Optional)

Suggestion: add kind in the description. produced by different controllers -> produced by different kinds of controllers

instrumentation.md#exception-for-object-state-metric

... even when they are produced by different controllers. Metrics describing the state of a built-in Kubernetes object take the form:
kube_<kind>_<metric> <-------------------- here

2. miss metrics value 1

Suggestion: append 1.
Replace kube_pod_info{pod=...,namespace=...,pod_ip=...,host_ip=..,node=..., ...}
with kube_pod_info{pod=...,namespace=...,pod_ip=...,host_ip=..,node=..., ...} 1.
instrumentation.md#normalization

kube_pod_info{pod=...,namespace=...,pod_ip=...,host_ip=..,node=..., ...} <-------------------- here

3. unfinished sentence

I failed to figure out the meaning of This leads to....

instrumentation.md#normalization
The metric system can later denormalize those along the identifying labels “pod” and “namespace” labels. This leads to...

migration-to-structured-logging.md

1. titles are not same (Optional)

Use klog.KObj and klog.KRef for Kubernetes object references V.S. Use klog.KObj and klog.KRef for Kubernetes objects

migration-to-structured-logging.md#migration

1. Change log functions to structured equivalent
2. Remove string formatting from log message
3. Name arguments
4. Use `klog.KObj` and `klog.KRef` for Kubernetes object references <-------------------- here
5. Verify log output

And here migration-to-structured-logging.md#use-klogkobj-and-klogkref-for-kubernetes-objects

event-style-guide.md

1. code examples (Optional)

instrumentation.md and migration-to-structured-logging.md provides code examples. It will be great if event-style-guide.md has code examples also.
event-style-guide.md#how-to-structure-an-event

@ehashman
Copy link
Member

Closed by #5915.

/close

@k8s-ci-robot
Copy link
Contributor

@ehashman: Closing this issue.

In response to this:

Closed by #5915.

/close

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.

ContribEx: contributor-documentation subproject automation moved this from Planned to Done Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/developer-guide Issues or PRs related to the developer guide kind/documentation Categorizes issue or PR as related to documentation. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation.
Development

No branches or pull requests

9 participants