mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Adding statsd mapping (#3010)
* Adding statsd mapping * Keep the default configuration sample minimized
This commit is contained in:
parent
0893bd3059
commit
16280723e7
@ -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…
x
Reference in New Issue
Block a user