@@ -37,7 +37,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
37
37
noReap bool
38
38
sshMaxTimeout time.Duration
39
39
tailnetListenPort int64
40
- promAddress string
40
+ prometheusAddress string
41
41
debugAddress string
42
42
)
43
43
cmd := & clibase.Cmd {
@@ -129,10 +129,10 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
129
129
ignorePorts [port ] = "pprof"
130
130
}
131
131
132
- prometheusSrvClose := ServeHandler (ctx , logger , prometheusMetricsHandler (), promAddress , "prometheus" )
132
+ prometheusSrvClose := ServeHandler (ctx , logger , prometheusMetricsHandler (), prometheusAddress , "prometheus" )
133
133
defer prometheusSrvClose ()
134
134
// 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 {
136
136
ignorePorts [port ] = "prometheus"
137
137
}
138
138
@@ -279,7 +279,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
279
279
Flag : "prometheus-address" ,
280
280
Default : "127.0.0.1:2112" ,
281
281
Env : "CODER_AGENT_PROMETHEUS_ADDRESS" ,
282
- Value : clibase .StringOf (& promAddress ),
282
+ Value : clibase .StringOf (& prometheusAddress ),
283
283
Description : "The bind address to serve Prometheus metrics." ,
284
284
},
285
285
{
0 commit comments