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(coderd): add prometheus metrics to servertailnet#11988

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

Conversation

coadler
Copy link
Contributor

No description provided.

@coadler
Copy link
ContributorAuthor

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@coadler and the rest of your teammates onGraphiteGraphite

}

func (c *instrumentedConn) Close() error {
c.closeOnce.Do(func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

are network connectionsalways explicitly closed?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

This one I'm not 100% sure on. Admittedly, I found this idea from a stackoverflow post which seemed to work for a couple other people. Was planning to get this into dev and monitor to make sure it works as intended with a lot more usage than I can reproduce myself.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess maybe theyshould be and this gauge will tell us if there's a leak...

connsPerAgent: prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "coder",
Subsystem: "servertailnet",
Name: "open_tcp_connections",
Copy link
Contributor

Choose a reason for hiding this comment

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

I realize we only use servertailnet for HTTP proxying at present, but what do you think about changing this toopen_connections and making the network a label (e.g.network=tcp? Like, I dunno, what if some customer wants us to proxy QUIC or some shit?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yeah that's a good point. If we were to keep it like this we would definitely preclude ourselves from expanding this without a breaking change. Adding anetwork=tcp with it really only ever being tcp for the forseeable future basically has the same implications and usability as not having it, probably a good change.

@coadlercoadlerforce-pushed thecolin/featcoderdaddprometheusmetricstoservertailnet branch from5f9a1d5 to02a7089CompareFebruary 6, 2024 05:34
@coadlercoadler merged commitc7f52b7 intomainFeb 6, 2024
@coadlercoadler deleted the colin/featcoderdaddprometheusmetricstoservertailnet branchFebruary 6, 2024 05:57
@coadler
Copy link
ContributorAuthor

Merge activity

@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 6, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@coadlercoadler

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@coadler@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp