Adding statsd mapping (#3010)
* Adding statsd mapping * Keep the default configuration sample minimized
This commit is contained in:
parent
0893bd3059
commit
16280723e7
1 changed files with 13 additions and 1 deletions
|
@ -28,6 +28,18 @@ Configuration variables:
|
||||||
- **prefix** (*Optional*): Prefix to use. Defaults to `hass`.
|
- **prefix** (*Optional*): Prefix to use. Defaults to `hass`.
|
||||||
- **rate** (*Optional*): The sample rate. Defaults to 1.
|
- **rate** (*Optional*): The sample rate. Defaults to 1.
|
||||||
- **log_attributes** (*Optional*): Log state and attribute changes. This changes the default stats path.
|
- **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).
|
StatsD supports various [backends](https://github.com/etsy/statsd/blob/master/docs/backend.md).
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue