Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: mount pprof and metrics to /api/v2/debug for admins#20353

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 5 commits intomainfromdean/debug-pprof-prom
Oct 21, 2025

Conversation

@deansheather
Copy link
Member

@deansheatherdeansheather commentedOct 17, 2025
edited
Loading

Adds the following debug routes for people with thedebug_info:read permission:

  • /api/v2/debug/pprof fornet/http/pprof
    • /
    • /profile
    • /symbol
    • /trace
    • /* except/cmdline
  • /api/v2/debug/metrics for Prometheus metrics

Seenet/http/pprof.init:https://cs.opensource.google/go/go/+/refs/tags/go1.25.3:src/net/http/pprof/pprof.go;l=95-105

Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

It wasn't changed here, but the auth middleware comment above for debug says "ensure only owners can access". Is this statement still accurate consideringdebug_info:read?

@deansheather
Copy link
MemberAuthor

In essence the comment is true since only owners have that permission I believe. If you want I can change the comment to be more explicit though@mafredri

@mafredri
Copy link
Member

In essence the comment is true since only owners have that permission I believe. If you want I can change the comment to be more explicit though@mafredri

Gotcha, if you don't mind it'd be nice to see the potential reduction of scope documented as well.

PS. It looks like enterprise tests are unhappy.

@deansheatherdeansheatherenabled auto-merge (squash)October 21, 2025 03:02
@deansheather
Copy link
MemberAuthor

Decided to add back/api/v2/debug/pprof/cmdline since the cmdline is also included in/api/v2/debug/expvar

@deansheatherdeansheather merged commit0652b18 intomainOct 21, 2025
30 checks passed
@deansheatherdeansheather deleted the dean/debug-pprof-prom branchOctober 21, 2025 03:13
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@mafredrimafredrimafredri approved these changes

@rowansmithaurowansmithauAwaiting requested review from rowansmithau

Assignees

@deansheatherdeansheather

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@deansheather@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp