Grafana Docker for Home Assistant on Synology - #003

preview_player
Показать описание
In 3rd episode of Home Assistant series we will install Grafana - two times 🙂
Once using terminl/CLI and second time using Synology Docker GUI.

00:00 - Intro
01:37 - Installing Grafana Docker through CLI/Terminal
09:46 - Installing Grafana Docker through Synology Docker GUI
15:35 - Basic Grafana configuration
17:15 - Creating first graph

Terminal Emulator - PuTTY
--------------------
For connecting via SSH, you will need terminal application, and I use for this Putty. Download link is:

Command to download Grafana image:
--------------------
sudo docker run -d -p 3000:3000 --name="grafana" --net=host -v /volume1/docker/grafana:/var/lib/grafana -v /usr/syno/etc/certificate/system/default:/var/ssl grafana/grafana

In order to set correct privileges, got to /volume1/docker folder and type

sudo chown -v 472:472 grafana

Please, give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!

Have fun!
BeardedTinker

🧡 If you would like to support me and this channel, you can JOIN and become channel member!

✅Twitter: @BeardedTinker

#grafana #docker #synology
Рекомендации по теме
Комментарии
Автор

I love your pace, it really helps me to learn.

pietheijn-vogt
Автор

Hi beardedtinker, I've just started going through your home assistant videos which are excellent. Having only recently acquired synology (expen version) I am going through a learning curve re using putty and linux commands. On of the things I am keen to be able to due is monitor my cpu and disc temps and fan speeds. It seems that telegraf may be the way forward from what I've found. Is this something you have covered within home assistant?

paulgrice
Автор

For me chown -v 472:472 grafana didn't help. I still cannot start grafana with error '/var/lib/grafana' is not writable. Why 472? Maybe I need another user?

ИльяПопов-тн
Автор

Thank you so much man. I have a few ssl certificates on my nas which comes from lets encrypt for my own domains. So on your command line system default ssl certificates means that garfana gonna use one of my certificates or i shall chose any specific certificate? If yes what shall i type on command line? Whats 472. Shall i use the same value?

ensartopaloglu
Автор

To access from outside in HA iframe panel, you have to add and set this environment "GF_SECURITY_ALLOW_EMBEDDING : TRUE "

Merwenus
Автор

Really useful. Keep it up. Just subscribed!

thebaldfox
Автор

I'm wondering whether to use Influx and Grafana on my Nas even though I have home assistant supervised. Purely for database storage reasons.

KrispKiwi
Автор

Geat video! I have followed your videos for a while and installed, Portainer & WatchTower along with Home assistant, For the past 6 months I have been able to get HA to send Grafana temperatur graphs to my phone using Pushbullet, however a recent change to Grafana version broke the image rendering so I no longer receive the graphs. Do you know whether it is easy to get going again with the latest Grafana or am I better off rolling back to a previous version of Grafana. If I do this WatchTower will eventually update it again! Is there a way to turn of watchtower for one docker container? How do I roll back to a previous Grafana version without losing my setup? I assume it is done somehow in Portainer? Thanks in advance & keep up the great videos...

namel
Автор

Excellent tutorial. Can you assist with how to work out the additional configuration required to add into the panel_iframe?

jedivino
Автор

In the Grafana setup for InfluxDB, is there a benefit to specifying the IP address, rather than just using localhost?

sleepymcdoze
Автор

Did you migrate to influx db v2? Could you make update?

GrumpySlaw
Автор

Hi beardedtinker, Thanks for your videos, I’m learning heaps from them.

do you plan on doing a docker Plex media server install?

Phil

OzRodent
Автор

Hello, thanks again for the tuto!
great work as always!
Everything is great except i dont get any data at all not even the sun in my influxdb i think...
I have a followed the steps religiously but nothing... :(

any pointers or way i could verify if at least i<m sending any data to influxdb^ i have like 100 entities and a few devices already configured in home assistant... which makes it even more strange. I get nothing no dropdown when i click the select mesurement from the query (which is influxdb dfefault)

help!
i wanna see some metrics!

fabiendostie
Автор

I could create panel with sun object as in your example and I see some of my home assistant entities in grafana. I see "binary_sensor" objects created by me, but I don't see "sensor" objects created by me. I have 10 temperature sensors in my home assistant and they are not available in grafana. I tried to insert name of my sensor manually into panel query, but it doesn't show any data on the graph anyway.
Here is what I see in query inspector for one of these temperature sensors
"SELECT mean("value") FROM "sensor.moia_komnata_podacha" WHERE ("entity_id" = 'moia_komnata_podacha') AND time >= now() - 24h GROUP BY time(2m) fill(null)"
Name of sensor I copied from HA developper tools menu.
What could be the problem?

ИльяПопов-тн
Автор

Hi BeardedThinker thank you for all the good Work.
l am trying to install but with the save test off influx i get a !
Network Error: Bad Gateway(502)
What do i wrong??

richardheijdra
Автор

Hi, great video good work. I have tried your method and still get the dreaded file permissions issue. Finally i get it working by chmod 777 the grafana folder on the DSM, but not before i delete the -v It appears that Grafana have issues with this one. Once i remove this line and chmod the folder, grafana works.

josephlo
Автор

Excellent again. Could you do one on Assistant Relay in docker please?

mindracing
Автор

How do i get to see grafana in ha ? I can‘t find the grafana.ini to edit the iframe attribut ?

olivers
Автор

had issues with the folder permissions and they way I fixed it was to first find out the user id # by doing the following:

id -u ---> this give you a number; say XYZ

then append to docker command the following: sudo docker run -u XYZ -d -p 3000:3000 --name="grafana" --net=host -v -v grafana/grafana

-u option of docker run will execute the docker container with the same credentials as the user that is logged in and created the grafana local folder.

hope this helps others with permission issues.

MehrdadGivehchi
Автор

which user i need to give the permission for grafana? on the video is 472:427. Is the number the same for me?

mibr