From 16280723e72f6fc54b1204c5c016f50079cbbdcc Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Thu, 27 Jul 2017 04:40:31 -0700 Subject: [PATCH] Adding statsd mapping (#3010) * Adding statsd mapping * Keep the default configuration sample minimized --- source/_components/statsd.markdown | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/_components/statsd.markdown b/source/_components/statsd.markdown index e9bed98ef1d..4b0b5249b2f 100644 --- a/source/_components/statsd.markdown +++ b/source/_components/statsd.markdown @@ -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). -