Skip to content

Commit 7ab7521

Browse files
committed
fixup! feat(agent): add http debug routes for magicsock
1 parent a3d2a9e commit 7ab7521

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/agent.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
3737
noReap bool
3838
sshMaxTimeout time.Duration
3939
tailnetListenPort int64
40-
promAddress string
40+
prometheusAddress string
4141
debugAddress string
4242
)
4343
cmd := &clibase.Cmd{
@@ -129,10 +129,10 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
129129
ignorePorts[port] = "pprof"
130130
}
131131

132-
prometheusSrvClose := ServeHandler(ctx, logger, prometheusMetricsHandler(), promAddress, "prometheus")
132+
prometheusSrvClose := ServeHandler(ctx, logger, prometheusMetricsHandler(), prometheusAddress, "prometheus")
133133
defer prometheusSrvClose()
134134
// Do a best effort here. If this fails, it's not a big deal.
135-
if port, err := urlPort(promAddress); err == nil {
135+
if port, err := urlPort(prometheusAddress); err == nil {
136136
ignorePorts[port] = "prometheus"
137137
}
138138

@@ -279,7 +279,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
279279
Flag: "prometheus-address",
280280
Default: "127.0.0.1:2112",
281281
Env: "CODER_AGENT_PROMETHEUS_ADDRESS",
282-
Value: clibase.StringOf(&promAddress),
282+
Value: clibase.StringOf(&prometheusAddress),
283283
Description: "The bind address to serve Prometheus metrics.",
284284
},
285285
{

0 commit comments

Comments
 (0)