Home Assistant Community Add-on: Grafana

Hello, I just installed hassio on Rpi 1 B to test out before I buy a rpi 3 B+. I try to install Grafana and InfluxDB. But I get the message “This add-on is not available on your system.” How come ? also the log says this. 19-08-16 00:05:16 INFO (SyncWorker_2) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi-homeassistant with version 0.97.2

19-08-16 01:47:11 ERROR (MainThread) [hassio.addons] Add-on a0d7b954_grafana not supported on that platform
19-08-16 01:47:16 ERROR (MainThread) [hassio.addons] Add-on a0d7b954_grafana not supported on that platform
19-08-16 01:52:19 ERROR (MainThread) [hassio.addons] Add-on a0d7b954_grafana not supported on that platform
19-08-16 01:52:19 ERROR (MainThread) [hassio.addons] Add-on a0d7b954_grafana not supported on that platform
19-08-16 01:53:18 ERROR (MainThread) [hassio.addons] Add-on a0d7b954_influxdb not supported on that platform
19-08-16 01:53:18 ERROR (MainThread) [hassio.addons] Add-on a0d7b954_influxdb not supported on that platform
19-08-16 01:53:18 ERROR (MainThread) [hassio.addons] Add-on a0d7b954_influxdb not supported on that platform

How can I resolve this? Thanks for the response.

Read the docs: GitHub - hassio-addons/addon-grafana: Grafana - Home Assistant Community Add-ons

This add-on does support ARM-based devices, nevertheless, they must at least be an ARMv7 device. (Raspberry Pi 1 and Zero is not supported).

Dear,
Is there anyway to delay the GarageBand addon to start after 5 minutes of hassio restart/start.?

:tada: Release v2.2.4

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades Grafana to v6.3.3
  • :arrow_up: Upgrades add-on base image to v3.2.0

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

Hi all,
A week or so ago (all working fine before that), I started having CPU usage issues (maxing out) caused by phantomjs when rending Grafana graphs. Looking at teh logs, is see errors like:
lvl=eror msg="Phantomjs exited with non zero exit code" logger=rendering error="signal: killed"
lvl=eror msg="Rendering failed." logger=context userId=2 orgId=1 uname=***** error="signal: killed"

In some cases my graphs still render in HA; sometimes they’re just really slow; sometimes they completely fail to render.

For context I’m running a hass.io docker image on a debian server (OpenMediaVault), with an E5-2407 2.2GHz Xeon and 24GB RAM—this should be massive overkill for HA (and has been to date).

Thanks!

Are you rendering really high res graphs at all?

Phantomjs can take a while on my RPi2 but it still manages it in the end, I’ll see if I can keep an eye on a task monitor next time it’s rendering out some graphs, see if my CPU is maxing out also :slight_smile:

No hi-res renders—all of my graphs are 800x400. I do have a few (one on one tab, five on another), but given what I’m running on, if should be a cinch. I’m wondering if it’s something to do with docker settings (though obviously, given it’s maxing out the whole server CPU, it has sufficient access there!

Two of the graphs take in 7 days of data (and do some integral calculus), but everything was running fine till a week or so ago (may have been earlier, and I didn’t notice, not seems unlikely).

Very odd, you have 24 times the RAM of my little Pi2, and am rending out similar size graphs to you: 1000x500 in my case.

However I use NodeRED to sequence the graph building, so when one finishes, the next one starts. I never do more than 1 at once. I should also mention I’m running Grafana 6.2.2 on Raspbian not Docker, so it could be a docker issue.

It’s worth bearing in mind that while Phantomjs works, ithas been mentioned in this thread been abandoned by the dev, there could be bugs.

I would try just one graph at a time and see if that works. Grafana may even have some sort of timeout where if Phantomjs doesn’t finish in a certain amount of time, it gives up and throws an error.

Could be that… I do seen to have one graph that displays consistently.

I’m looking at other options for the moment, but can we set grafana up to not use PhantonJS?

Not sure if my question is directly relevant to this post, but trying :slight_smile:
I have Grafana working on my NAS (QNAP), I have also configured this plugin to point to my NAS-IP and port used by Grafana (32768) (HASSIO is running on a Raspberry PI)
My problem is that I am unable to access Grafana (outside my home network) and I don’t know where to fix it.
I have tried to add my ddns hostname and port in the configuration.yaml for this plugin and the port is forwarded in my router.
It might be related to how grafana is set up on the NAS (Container Station) and how the routing is done there (to be honest its a bit too complicated for me to fully understand, haha)

Hope someone here have any knowledge around this :slight_smile:

Hi All, I am new to Grafana and was wondering if there are some basic instructions on how to start creating visual graphs. I have my grafana running and InfluxDb running and I am at the grafana web UI but I am confused about how to point to specific data and create graphs.

HI,
Do you run hass.io? If you do, how did you manage to get Phantomjs in there?

Thanks

I used to run HassIO but now I’ve moved over to Raspbian

OK, thanks. So I guess there is no straight forward way to get this working with hass.io if you don’t want to create your own hass.io docker image…

If there is a way I’m not aware of it. It may be possible somehow to in phantomJS into the addon somehow, or rebuild the existing addon with the extras.

I’m not experienced with Docker and containers, so I wouldn’t really know where to start, and could be way of track here. I just use what works for me! :slight_smile:

Phantomjs is not available on arm devices, Grafana does simple ship without it on those architecture.

PhantomJS is dead, project closed, no development anymore.

:tada: Release v2.2.5

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades Grafana to v6.3.5

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

1 Like

Anyone can explain me how to setup Grafana with https? I can’t find any working guide.

I have HA installed on Hass.IO. HA version is 0.98.5 (latest)
It is configured https with duckdns.

I’ve installed Grafana add-on and left the default configuration:

{
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "plugins": [],
  "env_vars": []
}

After start I try “Open Web UI” and it tries to open https://my.duckdns.org:3000 with no luck.
Do I have to configure a port forward on my router? Something else?

Any help is really appreciated.
Marco

EDIT: I finally got it working.

This works if you run HA with https (duckdns+let’encrypt)

  1. Install Grafana add-on;
  2. The default configuration should have "ssl" : true so leave it that way;
  3. Start Grafana; at this moment you should be able to login to grafana web ui only locally with https://ha_local_ip:3000
  4. This is the most important step: you have to add on your router a port forward rule from port 3000 (external) to port 3000 (internal) on your home assistant ip address.

Now you should be able to access Grafana on: https://my.duckdns.org:3000 locally and outside your LAN.
You can add an panel_iframe to HA in order to have Grafana directly from HA.

Hope this little guide can help somebody else. It would be nice to have it in the Grafana add-on doc.

check out this one… most comprehensive arcticle i found on this topic https://dummylabs.com/post/2019-01-13-influxdb-part1/ helped me a lot understanding influx.

Every time i log in, i get the message “failed to fetch dashboard” and then i am logged out?

t=2019-09-12T18:56:22+0000 lvl=info msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=GET path=/logout status=302 remote_addr=172.30.32.1 time_ms=50 size=57 referer=http://hassio.local:3000/
t=2019-09-12T18:56:24+0000 lvl=info msg=“Successful Login” logger=http.server User=admin@localhost
t=2019-09-12T18:56:24+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/api/dashboards/home status=401 remote_addr=172.30.32.1 time_ms=18 size=54 referer=http://hassio.local:3000/
t=2019-09-12T18:56:24+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/api/login/ping status=401 remote_addr=172.30.32.1 time_ms=3 size=54 referer=http://hassio.local:3000/
t=2019-09-12T18:56:25+0000 lvl=info msg=“Successful Logout” logger=http.server User=admin@localhost
t=2019-09-12T18:56:25+0000 lvl=info msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=GET path=/logout status=302 remote_addr=172.30.32.1 time_ms=54 size=57 referer=http://hassio.local:3000/