Docs: Add enable_hostname_label (#7956)
This commit is contained in:
parent
014791c032
commit
4221091de8
|
@ -30,6 +30,9 @@ The following options are available on all telemetry configurations.
|
|||
|
||||
* `disable_hostname` `(bool: false)` - Specifies if gauge values should be
|
||||
prefixed with the local hostname.
|
||||
* `enable_hostname_label` `(bool: false)` - Specifies if all metric values should
|
||||
contain the `host` label with the local hostname. It is recommended to enable
|
||||
`disable_hostname` if this option is used.
|
||||
|
||||
### `statsite`
|
||||
|
||||
|
@ -192,7 +195,7 @@ roles/monitoring.metricWriter
|
|||
* `stackdriver_namespace` a namespace identifier for the telemetry data.
|
||||
|
||||
It is recommended to also enable the option `disable_hostname` to avoid having prefixed
|
||||
metrics with hostname.
|
||||
metrics with hostname and enable instead `enable_hostname_label`.
|
||||
|
||||
```hcl
|
||||
telemetry {
|
||||
|
@ -200,5 +203,6 @@ telemetry {
|
|||
stackdriver_location = "us-east1-a"
|
||||
stackdriver_namespace = "vault-cluster-a"
|
||||
disable_hostname = true
|
||||
enable_hostname_label = true
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue