I installed Grafana on my local PC, I can access it via: http://grafana.staged-by-discourse.com/ I have another machine, let’s call it machine A. on the same network with a mySQL database and an ip address of: 17XXXXXXXX. I was wondering if I can use the database on machine A as a data source to visualize on my local Grafana dashboard? if so, how?
I have another machine, let’s call it machine A. on the same network with a
mySQL database and an ip address of: 17XXXXXXXX.
If that address starts with 172.16.something through to 17.31.something, then
there’s no need to obfuscate it when posting to a public list - it’s a private
address accessible only from your own local network.
I was wondering if I can use the database on machine A as a data source to
visualize on my local Grafana dashboard?
Yes.
if so, how?
Configure MyQSL as your data source and enter the IP address of your database
server (let’s call it machine A).
Hi grant, thank you for your answer. I added the IP address:port as the host. However, I get the following error when I try to 'save & test ’ it : db query error: failed to connect to server - please inspect Grafana server log for details.
Any idea on what could be the problem? thank you
Hello grant2.
Thx for reply.
I’m running grafana in docker at a Synology NAS.
All mysql (local) databases at the same NAS are working fine.
I wanted to add a dashboard with a chart with data from another MySQL db located at another machine in the same 192.168.1.1/24 net.
I can ping , ssh and access the second db from my NAS with “mysql ip:port -user -password”.
grafana-docker logfile tells me “connection timed out”.
Now I’m searching grafana community for a solution but only found question regarding the same issue
So it sounds like Grafana can connect fine to the MySQL databases on the same Synology NAS (where Grafana is running), but Grafana cannot establish a working connection to a different MySQL database on the LAN.
Can you share a screenshot from Grafana of the non-working connection?
you’re right. Grafana works fine with the local database, but not with others in the same LAN. I have 3 of them I want to connect to Grafana. 192.168.1.172 is one of them, a Raspberry Pi collecting data into his local MySQL db.
There Is not much to be seen at the screenshot, I think ?