StatsD


The statsd component makes it possible to transfer all state changes to an external StatsD instance.

To use the statsd component in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
statsd:

Configuration Variables

host

(string)(Required)IP address of your StatsD host, e.g., 192.168.1.10.

Default value: localhost

port

(integer)(Optional)Port to use.

Default value: 8125

prefix

(string)(Optional)Prefix to use.

Default value: hass

rate

(integer)(Optional)The sample rate.

Default value: 1

log_attributes

(boolean)(Optional)Log state and attribute changes. This changes the default stats path.

Default value: false

value_mapping

(list)(Optional)Map non-numerical values to numerical ones.

Full example:

# Example configuration.yaml entry
statsd:
  prefix: home
  rate: 5
  value_mapping:
    cooling: 1
    heating: 10

StatsD supports various backends.