Add enable_hostname_label option to telementry stanza (#7902)
This commit is contained in:
parent
66bb372fca
commit
beeec81df7
|
@ -2270,6 +2270,7 @@ func (c *ServerCommand) setupTelemetry(config *server.Config) (*metricsutil.Metr
|
|||
|
||||
metricsConf := metrics.DefaultConfig("vault")
|
||||
metricsConf.EnableHostname = !telConfig.DisableHostname
|
||||
metricsConf.EnableHostnameLabel = telConfig.EnableHostnameLabel
|
||||
|
||||
// Configure the statsite sink
|
||||
var fanout metrics.FanoutSink
|
||||
|
|
|
@ -167,6 +167,7 @@ type Telemetry struct {
|
|||
StatsdAddr string `hcl:"statsd_address"`
|
||||
|
||||
DisableHostname bool `hcl:"disable_hostname"`
|
||||
EnableHostnameLabel bool `hcl:"enable_hostname_label"`
|
||||
|
||||
// Circonus: see https://github.com/circonus-labs/circonus-gometrics
|
||||
// for more details on the various configuration options.
|
||||
|
|
Loading…
Reference in New Issue