Make metrics access unauthenticated when in dev mode. (#10992)
This commit is contained in:
parent
9d2e2b1d09
commit
c9ae15bd95
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
core: dev mode listener allows unauthenticated sys/metrics requests
|
||||
```
|
|
@ -942,6 +942,7 @@ func (c *ServerCommand) Run(args []string) int {
|
|||
if c.flagDevListenAddr != "" {
|
||||
config.Listeners[0].Address = c.flagDevListenAddr
|
||||
}
|
||||
config.Listeners[0].Telemetry.UnauthenticatedMetricsAccess = true
|
||||
}
|
||||
|
||||
parsedConfig, err := c.parseConfig()
|
||||
|
|
Loading…
Reference in New Issue