Skip to content

Commit

Permalink
Adding statsd mapping (home-assistant#3010)
Browse files Browse the repository at this point in the history
* Adding statsd mapping

* Keep the default configuration sample minimized
  • Loading branch information
Khabi authored and fabaff committed Jul 27, 2017
1 parent 0893bd3 commit 1628072
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion source/_components/statsd.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

StatsD supports various [backends](https://github.com/etsy/statsd/blob/master/docs/backend.md).
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).

0 comments on commit 1628072

Please sign in to comment.