Netdata


The netdata sensor platform allows you to display information collected by Netdata.

Setup

Getting the details to configure the sensors is a bit tricky as Netdata uses different name for the element: value that is required. To get the value for the data_group: use Netdata’s web interface. 1. marks the name for the data_group:. 2. are the names for the element to show in Home Assistant. The name that is shown can be different than the name under which the metrics are available.

To check if the element: name matches the name in the Netdata frontend, use curl with the IP address of your Netdata instance, its port and the data_group:

$ curl -X GET "http://[Netdata_Instance]:19999/api/v1/data?chart=[data_group]&points=2&options=jsonwrap"
{
   "api": 1,
   "id": "system.ipv4",
   "name": "system.ipv4",
[...]
   "dimension_names": ["received", "sent"],
   "dimension_ids": ["InOctets", "OutOctets"],
[...]
  • dimension_names: Names shown in the frontend.
  • dimension_ids: Names to use for element.

Configuration

To add this platform to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: netdata
    resources:
      load:
        data_group: system.load
        element: load15
      cpu:
        data_group: system.cpu
        element: system

Configuration Variables

host

(string)(Optional)The IP address or hostname of your Netdata instance.

Default value: localhost

port

(integer)(Optional)The port that the Netdata instance is running on.

Default value: 19999

name

(number)(Optional)Name of the monitored Netdata instance.

Default value: Netdata

resources

(map)(Required)List of details to monitor.

name

(string)(Required)Name to use for the sensor in the frontend.

data_group

(string)(Required)Name of the data group to monitor, e.g., system.cpu.

element

(string)(Required)The element of the group to monitor.

icon

(icon)(Optional)Icon to use for the sensor.

Default value: mdi:desktop-classic