Adding statsd mapping (#3010)

* Adding statsd mapping

* Keep the default configuration sample minimized
This commit is contained in:
Richard Cox 2017-07-27 04:40:31 -07:00 committed by Fabian Affolter
parent 0893bd3059
commit 16280723e7

View File

@ -28,6 +28,18 @@ Configuration variables:
- **prefix** (*Optional*): Prefix to use. Defaults to `hass`.
- **rate** (*Optional*): The sample rate. Defaults to 1.
- **log_attributes** (*Optional*): Log state and attribute changes. This changes the default stats path.
- **value_mapping** (*Optional*): Map non-numerical values to numerical ones.
Full example:
```yaml
# Example configuration.yaml entry
statsd:
prefix: home
rate: 5
value_mapping:
cooling: 1
heating: 10
```
StatsD supports various [backends](https://github.com/etsy/statsd/blob/master/docs/backend.md).