Docs: Add enable_hostname_label (#7956)

This commit is contained in:
Michel Vocks 2019-12-02 17:51:02 +01:00 committed by GitHub
parent 014791c032
commit 4221091de8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
```