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

Admin server - part 2 #10482

Merged
merged 5 commits into from
Jan 21, 2025
Merged

Admin server - part 2 #10482

merged 5 commits into from
Jan 21, 2025

Conversation

jenshu
Copy link
Contributor

@jenshu jenshu commented Jan 21, 2025

  • Move all of the internal debugging endpoints to port 9091 (and retire 9095).
  • Add back logging and pprof endpoints
    • also fixed the logging handler so that it accurately reflects the current log level when you load the admin page
  • The /zpages endpoint is removed.
  • The /metrics endpoint is removed, but will be added back later (Admin page: add metrics endpoint #10452)

Port 9091 now contains:

  • /debug/pprof/
  • /logging
  • /snapshots/krt
  • /snapshots/xds

})
// initialize the atomic log level
if envLogLevel := os.Getenv(contextutils.LogLevelEnvName); envLogLevel != "" {
contextutils.SetLogLevelFromString(envLogLevel)
Copy link
Contributor

Choose a reason for hiding this comment

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

this is definitely a good reminder that we should pull contextutils into this repo to work towards not needing the go-utils dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah i noticed we use it everywhere for logging. do we no longer want the go-utils dep, even for logging stuff?
if so, i can work on removing it completely from the repo (in a separate PR)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so but its definitely a different pr.

I wonder if we also just fork it from go-utils and put it in a smaller kgateway-dev repo? Thats the hard question: where should it live.

Lets bring it to the community meeting today.

Copy link
Contributor

Choose a reason for hiding this comment

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

we should remove the contextutils/go-utils dep entirely but i dont think it should factor into this work

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed. This is more of an interesting point that we still want something that allows this toggle to change logging holistically from a single end point

Copy link
Contributor

Choose a reason for hiding this comment

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

i agree that this is out of scope for this change, but for context, we probably want to change they way we do logging - having them attached to the context is annoying:

  • we have to pass context even to util functions that dont do IO
  • we can't have log topics and enable debug on specific topics

Copy link
Contributor

@lgadban lgadban left a comment

Choose a reason for hiding this comment

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

LGTM but will defer approval

@nfuden nfuden added this pull request to the merge queue Jan 21, 2025
Merged via the queue into kgateway-dev:main with commit b46e5e2 Jan 21, 2025
6 checks passed
lgadban added a commit that referenced this pull request Jan 23, 2025
commit b3fa763
Author: Tim Flannagan <[email protected]>
Date:   Tue Jan 21 16:17:55 2025 -0500

    *: Migrate container registry from quay.io to ghcr.io (#10484)

    Signed-off-by: timflannagan <[email protected]>

commit b46e5e2
Author: Jenny Shu <[email protected]>
Date:   Tue Jan 21 12:47:25 2025 -0500

    Admin server - part 2 (#10482)

commit cb5a24f
Author: Nathan Fudenberg <[email protected]>
Date:   Tue Jan 21 08:42:16 2025 -0500

    naming clean up k8sgateway -> kgateway (#10477)

    Co-authored-by: Jenny Shu <[email protected]>

commit e649e3b
Author: Nathan Fudenberg <[email protected]>
Date:   Mon Jan 20 17:01:08 2025 -0500

    Fix/scrubdevel (#10475)

    Co-authored-by: Jenny Shu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants