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
|
||||
|
|
|
@ -166,7 +166,8 @@ type Telemetry struct {
|
|||
StatsiteAddr string `hcl:"statsite_address"`
|
||||
StatsdAddr string `hcl:"statsd_address"`
|
||||
|
||||
DisableHostname bool `hcl:"disable_hostname"`
|
||||
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