Netdata platform configuration issue

I try to configure the netdata platform, but it only works if I omit the resources array (and I get the free memory default reading), BUT, otherwise if I use few parameters I get this:

ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform netdata
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 171, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
    return fut.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/netdata.py", line 89, in setup_platform
    rest.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/netdata.py", line 151, in update
    det = response.json()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/requests/models.py", line 892, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
    raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)

the config I have at the moment:

- platform: netdata
  resources:
    - connections
    - uptime

Any ideas? Is this an issue to report or is related with my configuration wrong?

i have exactly same issue…

I was implementing this and I had the same error.

So, to configure NetData properly should be done this way:

- platform: netdata
  name: NetData - Server
  host: 192.168.1.X
  port: 19999
  resources:
    - 'memory_free'
    - 'memory_used'
    - 'memory_cached'
    - 'memory_buffers'
    - 'swap_free'
    - 'swap_used'
    - 'processes_running'
    - 'processes_blocked'
    - 'system_load'
    - 'system_io_in'
    - 'system_io_out'
    - 'ipv4_in'
    - 'ipv4_out'
    - 'disk_free'
    - 'cpu_iowait'
    - 'cpu_user'
    - 'cpu_system'
    - 'cpu_softirq'
    - 'cpu_guest'
    - 'uptime'
    - 'packets_received'
    - 'packets_sent'
    - 'connections'

BTW, in the documentation is using this simbol ( ‘ ) that actually is not a valid character and I got all type of errors, if you change it with this ( ' ) works perfectly.

hope this helps!

5 posts were split to a new topic: Netdata configuration