Home Assistant Community Add-on: InfluxDB

Those logs look fine btw! That connection error is expected, Chronograf is starting and connecting to InfluxDB, which is not ready at that time yet… I will just keep retrying until it does. (which it does, since You’ve been able to access the interface).

It seems like Home Assistant has issues connecting. Is there anything visible in the Home Assistant logs?

Hmm the only two lines with influxdb seem to point to an authorization issue:

2018-06-23 23:56:44 ERROR (SyncWorker_11) [homeassistant.components.influxdb] Database host is not accessible due to '401: {“error”:“authorization failed”}
2018-06-23 23:56:44 ERROR (MainThread) [homeassistant.setup] Setup failed for influxdb: Component failed to initialize.

Check that the username and password in the hass config match exactly with the user and pass you setup in influxdb

@atomicpapa That is uncanny. I triple checked the login/pw last night (it wasn’t a complicated pw to begin with but I simplified it even further). For sanity I’m going to revert it back to what it was and see if I’m just mentally programmed to typo that particular password.

:tada: Release v0.2.2

Full Changelog

Changed

  • Updates InfluxDB to v1.5.4

Hi Frenk,
In the end, I have setup a docker container with Telegraf. It supplies mostly the same information as Collectd, allows to have a config file at the host system and comunicates gracefully with the Influxdb instance of your plugin.
https://hub.docker.com/_/telegraf/

1 Like

I’ve considered adding telegraph, but that would actually require a whole different level of configuration and plugin support.

I’ve decided that that might be to much for now.

Hi,

Is it possible to install this on a different device that isn’t running my main hass.io? I have a spare RPi and would like to use this with Grafana installed on it to free up resources on my main Pi. Can we point to hass.io or does it need to be installed on the same device?

That is possible, you can mix and match.

Thanks got it up and running on separate pi in minutes thanks for your work on this and grafana.

:tada: Release v0.3.0

Full Changelog

Changed

  • Upgrades InfluxDB to v1.6.0
  • Upgrades Chronograf to v1.6.0
1 Like

Hi! Did you get to import historial cata on InfluxDB? I tested this script, but it didn’t work:

https://www.home-assistant.io/docs/tools/influxdb_import/

Thanks!

:tada: Release v1.0.0

The add-on has been running perfectly since its intial release, and is now STABLE!!! :tada:

We’ve updated InfluxDB and all the tools to the latest and greatest. This release adds password checks against the HaveIBeenPwned password database and now supports the use of your Home Assistant secrets file!

So you can now use !secret influxdb_password as your password and the add-on will fetch the actual password from your secrets file.

Full Changelog

Added

  • Enforces authentication and HaveIBeenPwned checks

Changed

  • Upgrades hadolint to latest
  • Upgrades base image to v2.1.0
  • Sets default Shell
  • Enables SSL by default
  • Upgrades apache2-utils to 2.4.29-1ubuntu4.1
  • Upgrades InfluxDB to v1.6.1
  • Upgrades Chronograf to v1.6.1
  • Upgrades Kapacitor to v1.5.1
  • Less aggressive cleanup
  • Stop NGinx from throwing log errors
  • Updates README and links
  • Marks add-on stable

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

1 Like

:tada: Release v1.0.1

Full Changelog

Changed

  • Upgrades base image to v2.1.1

changelog: https://github.com/hassio-addons/addon-influxdb/compare/v1.0.0Full Changelog

Changed

  • Upgrades base image to v2.1.1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

1 Like

Upgraded and now get the following error:

Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp 127.0.0.1:8086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.

Is there an additional setting I need to set now?

There is nothing to worry about… This is the web interface complaining about the database not being ready yet.

It will retry until it is and continue working as normal.

Hi,
how can I export my metrics from influxdb running on hass.io? I want to migrate from pi to nuc and would like to take my data. How to access the influx cli?

Install influxdb on your own pc, and then you can access the cli using the -host parameter.

thanks for feedback. I’m able to connect to remote host (rpi). I’ve checked some influxdb docs, there seems no export function. Anybody knows a way to export the data?

This is actually not related to this add-on itself, but general InfluxDB. Anyway, try this: https://docs.influxdata.com/influxdb/v1.6/administration/backup_and_restore/

1 Like