Home Assistant Community Add-on: Grafana

:tada: Release v2.1.4

Full Changelog

This is a maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades Grafana to 6.2.2

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

Just installed both Influxdb and grafana. Got them up and running. Added some dashboards and everything was working like a charm. Had to reboot home assistant due to some other changes in config (not related to either influx or grafana). Even reverted the changes to see if there was any link, no luck.

After this I cannot login to grafana. I know my credentials and have also tried with default. Also tried logging in from incognito and other computer, same results.
Fyi, Grafana accepts login from main screen. After that a new login keeps popping up…

Any idea?

1 Like

Well ,got it working. Clearly , there must be a bug in there. In data source I I just removed the password and re entered it. 100% sure it was the same as already saved. So now it is working :slight_smile:

1 Like

:tada: Release v2.2.0

Full Changelog

This is a maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v3.1.3
  • :arrow_up: Upgrades Grafana to v6.2.4
  • :pencil2: Maintaince -> Maintenance
  • :sparkles: Adds FUNDING.yml

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

:tada: Release v2.2.1

Full Changelog

This is a maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades Grafana to 6.2.5

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

Thank you for this. I had the same issue appear twice. After rebooting on installation it did this to me. I thought I messed something up since I had just set it up. So I uninstalled and reinstalled it to fix. But then after a power outage it did it again.

Removing the password and putting same one into data source fixed it for me. Seems to have held through a reboot as well.

Same problem here. After restart of Grafana (from Hass.IO webUI), logged into Grafana succesfully. After that popups are coming.
Reentered credentials for the datasource (InfluxDB) and popups went away.
Looks like some persistance issue.

1 Like

Any news from Grafana about embedding for ARM (RasPI) now that V6 is out?

I’ve not heard anything so far, PhantomJS does work OK under Raspbian but it takes a while to make the graphs on my Pi2, especially is it’s high res.

If there is a replacement coming I’d quite like to try it out. :slight_smile:

I’ve just installed Influx and Grafana and as far as I can tell both are working correctly. i.e. I can open both web interfaces and login :slight_smile:

However, I cannot find anywhere to add a database source. The configuration menu is empty.

image

I am pretty sure that it is I who have done something wrong (or not done something right) because the Grafana logs show something, ahem, suspicious at the bottom…

here is my Grafana config,

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

And yes I do have the .pem files in the right place (whaich are also being used by other things).

Thanks for any help.

image

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: Grafana
 The open platform for beautiful analytics and monitoring
-----------------------------------------------------------
 Add-on version: 2.2.1
 You are running the latest version of this add-on.
 System: HassOS 2.12  (amd64 / qemux86-64)
 Home Assistant version: 0.95.4
 Supervisor version: 168
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] grafana.sh: executing... 
[cont-init.d] grafana.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[17:52:30] INFO: Starting Memcached...
[services.d] done.
[17:52:30] INFO: Starting Grafana...
t=2019-07-12T17:52:30+0100 lvl=info msg="Starting Grafana" logger=server version=6.2.5 commit=6082d19 branch=HEAD compiled=2019-06-25T18:56:19+0100
t=2019-07-12T17:52:30+0100 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2019-07-12T17:52:30+0100 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini
t=2019-07-12T17:52:30+0100 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana
t=2019-07-12T17:52:30+0100 lvl=info msg="Path Data" logger=settings path=/data
t=2019-07-12T17:52:30+0100 lvl=info msg="Path Logs" logger=settings path=/var/logs/grafana
t=2019-07-12T17:52:30+0100 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins
t=2019-07-12T17:52:30+0100 lvl=info msg="Path Provisioning" logger=settings path=/usr/share/grafana/conf/provisioning
t=2019-07-12T17:52:30+0100 lvl=info msg="App mode production" logger=settings
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing SqlStore" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
t=2019-07-12T17:52:30+0100 lvl=info msg="Starting DB migration" logger=migrator
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing HTTPServer" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing InternalMetricsService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing RemoteCache" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing QuotaService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing LoginService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing PluginManager" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Starting plugin search" logger=plugins
t=2019-07-12T17:52:30+0100 lvl=info msg="Plugin dir created" logger=plugins dir=/var/lib/grafana/plugins
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing RenderingService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing AlertingService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing DatasourceCacheService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing HooksService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing SearchService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing ServerLockService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing TracingService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing UsageStatsService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing UserAuthTokenService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing CleanUpService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing NotificationService" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing provisioningServiceImpl" logger=server
t=2019-07-12T17:52:30+0100 lvl=info msg="Initializing Stream Manager"
t=2019-07-12T17:52:30+0100 lvl=info msg="HTTP Server Listen" logger=http.server address=0.0.0.0:80 protocol=https subUrl= socket=
2019/07/12 17:55:04 http: TLS handshake error from 192.168.1.152:49469: remote error: tls: unknown certificate
t=2019-07-12T17:55:04+0100 lvl=eror msg="failed to look up user based on cookie" logger=context error="user token not found"
t=2019-07-12T17:55:04+0100 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=192.168.1.152 time_ms=0 size=57 referer=
2019/07/12 17:55:04 http: TLS handshake error from 192.168.1.152:49472: remote error: tls: unknown certificate
2019/07/12 17:55:04 http: TLS handshake error from 192.168.1.152:49471: remote error: tls: unknown certificate
2019/07/12 17:55:04 http: TLS handshake error from 192.168.1.152:49474: remote error: tls: unknown certificate
2019/07/12 17:55:24 http: TLS handshake error from 192.168.1.152:49478: remote error: tls: unknown certificate
2019/07/12 17:55:24 http: TLS handshake error from 192.168.1.152:49479: remote error: tls: unknown certificate
2019/07/12 17:55:24 http: TLS handshake error from 192.168.1.152:49480: remote error: tls: unknown certificate
2019/07/12 17:55:24 http: TLS handshake error from 192.168.1.152:49482: remote error: tls: unknown certificate
2019/07/12 17:55:24 http: TLS handshake error from 192.168.1.152:49481: remote error: tls: unknown certificate
2019/07/12 17:55:24 http: TLS handshake error from 192.168.1.152:49487: remote error: tls: unknown certificate

I’ve suddenly got a strange issue. Coming home from 18 days vacation and trying to log in to grafana ui, it just won’t accept my username and password. Tried rebooting and upgrading - still the same. I know my user and password are correct. Anybody else with the same?

Hello,
I’ve just installed InfluxDB and Grafana.
Influxdb seems to work correctly but Grafana gifs an Error when i save the datasource:
undefined is not an object (evaluating ‘e.data’)
Does anyone know why this is?

I’d check the logs for any signs of unauthorized access…

t=2019-07-24T19:23:48+0200 lvl=eror msg="Basic auth failed" logger=context error="User not found"
t=2019-07-24T19:23:48+0200 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/api/datasources/proxy/2/query status=401 remote_addr=ipadres time_ms=2 size=31 referer="http://ipadres:3000/?orgId=1"

this is what my log says.
in grafana i used the user from influxdb.

:tada: Release v2.2.2

Full Changelog

This release fixes an issue with Grafana keeps forgetting authentication and authentication data to the data source.

:information_source: Please note, after upgrading, Grafana will ask for this one more time. After that, it persists.

:hammer: Changes

  • :ambulance: Fixes Grafana secret key rotation to be fixed

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

Hello,

I tried a lot of different setting but Grafana gives the same error:

These are my settings:

23

Does anyone know why this is?

Dear,
You are doing a mistake and asking here.
Check your username in influxdb and grafana
In influxdb u have Homeassistant as user and in grafana u r adding grafana as influxdb user.
username, password and database should be same on both ( since you are creating influxdb user and database which is used in grafana)

:tada: Release v2.2.3

[Full Changelog][changelog]

This is a general maintenance release.

:hammer: Changes

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

Embedding or linking in hassio on RasPi, now that v6.3 is in hassio?

I get that you keep coming back to this, however, you should keep asking that @ Grafana… The add-on is not going to change the Grafana software.