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

add support to configure logging format #98

Closed
wants to merge 1 commit into from

Conversation

aramase
Copy link

@aramase aramase commented Dec 14, 2020

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind feature

What this PR does / why we need it:
Adds configuration for json log formatter

Which issue(s) this PR fixes:

Fixes #97

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

added --log-format-json=<true | false> set log formatter to json (default: false)

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 14, 2020
@k8s-ci-robot
Copy link
Contributor

Welcome @aramase!

It looks like this is your first PR to kubernetes-csi/livenessprobe 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-csi/livenessprobe has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @aramase. Thanks for your PR.

I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 14, 2020
@aramase
Copy link
Author

aramase commented Dec 14, 2020

/kind feature

@aramase
Copy link
Author

aramase commented Dec 15, 2020

/assign @msau42

@Jiawei0227
Copy link
Contributor

Can you help to rebase this?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 15, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: aramase
To complete the pull request process, please assign msau42 after the PR has been reviewed.
You can assign the PR to them by writing /assign @msau42 in a comment when ready.

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 removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 15, 2020
@aramase
Copy link
Author

aramase commented Dec 15, 2020

Can you help to rebase this?

Done!

@Jiawei0227
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 15, 2020
@aramase aramase force-pushed the log-format-json branch 3 times, most recently from 2b49fba to 90e1657 Compare December 15, 2020 21:58
@aramase aramase changed the title add support for json log format [WIP] add support for json log format Dec 15, 2020
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 15, 2020
@aramase aramase force-pushed the log-format-json branch 2 times, most recently from 83b2e91 to d7acdff Compare December 16, 2020 00:31
@aramase
Copy link
Author

aramase commented Aug 17, 2021

@verult If we want to include this in the next release, I can dust off the PR again. There has been some conversation on how to approach this: kubernetes-csi/node-driver-registrar#129.

@msau42
Copy link
Collaborator

msau42 commented Aug 17, 2021

I believe @pohly was starting to look into structured logging for the csi sidecars.

@aramase
Copy link
Author

aramase commented Aug 17, 2021

I believe @pohly was starting to look into structured logging for the csi sidecars.

Ah, gotcha! @pohly Let me know how I can help. With structured logging, we should still be able to support json log format.

@verult
Copy link
Contributor

verult commented Aug 18, 2021

@aramase @msau42 @pohly my understanding from kubernetes-csi/node-driver-registrar#129 is that even with structured logging, we still need to add json logging separately. Does json logging depend on the structured logging work? Do you think either structured logging or json logging would be able to land for this current sidecar release cycle?

@verult verult mentioned this pull request Aug 18, 2021
@pohly
Copy link
Contributor

pohly commented Aug 18, 2021

We should start an issue about structured logging where discuss all related aspects (configuration, log calls, how to pass a logger). This isn't specific to a certain sidecar.

@msau42: would that be worth a separate project under https://github.com/orgs/kubernetes-csi/projects?

@msau42
Copy link
Collaborator

msau42 commented Aug 18, 2021

We should start an issue about structured logging where discuss all related aspects (configuration, log calls, how to pass a logger). This isn't specific to a certain sidecar.

Michelle Au: would that be worth a separate project under https://github.com/orgs/kubernetes-csi/projects?

Yeah that sounds good to me! Agree that we want to be consistent across sidecars and also consistent with the Kubernetes effort.

@verult
Copy link
Contributor

verult commented Aug 18, 2021

Ack, since this requires a wider effort we'll leave it out of this release. Thanks all!

@pohly
Copy link
Contributor

pohly commented Aug 20, 2021

would that be worth a separate project under https://github.com/orgs/kubernetes-csi/projects?

I created https://github.com/orgs/kubernetes-csi/projects/46. Let's discuss in one of the upcoming CSI standup meetings.

@k8s-triage-robot
Copy link

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

This bot triages issues and 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 issue is closed

You can:

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

Please 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 Nov 18, 2021
@pierluigilenoci
Copy link

@aramase could you please fix the PR?

@pohly
Copy link
Contributor

pohly commented Nov 19, 2021

/hold

Let's not merge this without aligning on a common direction for all sidecars first. See https://github.com/orgs/kubernetes-csi/projects/46 for a list of TODOs.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 19, 2021
@k8s-triage-robot
Copy link

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

This bot triages issues and 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 issue is closed

You can:

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

Please 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 Dec 19, 2021
@pierluigilenoci
Copy link

/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 Jan 3, 2022
@pierluigilenoci
Copy link

This is still an issue

@k8s-triage-robot
Copy link

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

This bot triages issues and 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 issue is closed

You can:

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

Please 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 Apr 3, 2022
@pierluigilenoci
Copy link

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 4, 2022
@pierluigilenoci
Copy link

@aramase could you please take a look?

@aramase
Copy link
Author

aramase commented Apr 4, 2022

@pierluigilenoci I will let the maintainers of the node-driver-registrar and liveness probe decide how they want to proceed with supporting json log formatting. I don't have the time currently for rebasing the 2 PRs, so I'm going to close them and let someone else pick up the issue if there is interest in supporting the json log format.

/close

@k8s-ci-robot
Copy link
Contributor

@aramase: Closed this PR.

In response to this:

@pierluigilenoci I will let the maintainers of the node-driver-registrar and liveness probe decide how they want to proceed with supporting json log formatting. I don't have the time currently for rebasing the 2 PRs, so I'm going to close them and let someone else pick up the issue if there is interest in supporting the json log format.

/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.

@aramase aramase deleted the log-format-json branch April 4, 2022 08:00
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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/feature Categorizes issue or PR as related to a new feature. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support JSON log format for liveness-probe
9 participants