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: add pprof and prometheus metrics tocoder server#1266

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
coadler merged 3 commits intomainfromcolin/prom-pprof
May 3, 2022

Conversation

coadler
Copy link
Contributor

No description provided.

@coadlercoadler self-assigned thisMay 2, 2022
@coadlercoadler requested a review fromkylecarbsMay 2, 2022 23:15
@codecov
Copy link

codecovbot commentedMay 2, 2022
edited
Loading

Codecov Report

Merging#1266 (dca1216) intomain (fd49a18) willdecrease coverage by0.27%.
The diff coverage is74.35%.

@@            Coverage Diff             @@##             main    #1266      +/-   ##==========================================- Coverage   66.07%   65.79%   -0.28%==========================================  Files         276      277       +1       Lines       18146    18221      +75       Branches      216      216              ==========================================- Hits        11990    11989       -1- Misses       4917     4976      +59- Partials     1239     1256      +17
FlagCoverage Δ
unittest-go-macos-latest53.27% <74.35%> (+0.13%)⬆️
unittest-go-postgres-64.75% <74.35%> (-0.17%)⬇️
unittest-go-ubuntu-latest55.71% <74.35%> (-0.02%)⬇️
unittest-go-windows-202251.61% <74.35%> (+0.15%)⬆️
unittest-js70.69% <ø> (ø)
Impacted FilesCoverage Δ
cli/server.go57.59% <37.93%> (-1.20%)⬇️
coderd/httpmw/prometheus.go95.45% <95.45%> (ø)
coderd/coderd.go97.72% <100.00%> (+0.04%)⬆️
peerbroker/dial.go77.04% <0.00%> (-13.12%)⬇️
coderd/parameter/compute.go74.07% <0.00%> (-4.45%)⬇️
peerbroker/proxy.go58.72% <0.00%> (-3.49%)⬇️
provisioner/echo/serve.go56.80% <0.00%> (-2.41%)⬇️
cli/cliui/provisionerjob.go76.42% <0.00%> (-2.15%)⬇️
peer/conn.go76.86% <0.00%> (-1.75%)⬇️
provisionerd/provisionerd.go75.23% <0.00%> (-1.48%)⬇️
... and4 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatefd49a18...dca1216. Read thecomment docs.

Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

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

I like how simple this is. Neato!

cli/server.go Outdated
cliflag.StringVarP(root.Flags(), &address, "address", "a", "CODER_ADDRESS", "127.0.0.1:3000", "The address to serve the API and dashboard")
cliflag.StringVarP(root.Flags(), &accessURL, "access-url", "", "CODER_ACCESS_URL", "", "Specifies the external URL to access Coder.")
cliflag.StringVarP(root.Flags(), &address, "address", "a", "CODER_ADDRESS", "127.0.0.1:3000", "The address to serve the API and dashboard.")
cliflag.BoolVarP(root.Flags(), &promEnabled, "enable-prometheus", "", "CODER_ENABLE_PROMETHEUS", false, "Enable serving prometheus metrics on the addressdefined by --prometheus-address.")
Copy link
Member

Choose a reason for hiding this comment

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

For TLS, we did the naming inverted. Not sure if we wanna keep it going, but we could 🤷.

prometheus-enabled or something.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Whoops, I'll make it consistent!

@coadlercoadler requested a review froma team as acode ownerMay 2, 2022 23:45
@coadlercoadler removed the request for review froma teamMay 2, 2022 23:47
@coadlercoadlerenabled auto-merge (squash)May 3, 2022 00:23
@coadlercoadler merged commit55ad97b intomainMay 3, 2022
@coadlercoadler deleted the colin/prom-pprof branchMay 3, 2022 12:48
@missknissmisskniss added this to theV2 Beta milestoneMay 15, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@coadlercoadler

Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

3 participants
@coadler@kylecarbs@misskniss

[8]ページ先頭

©2009-2025 Movatter.jp