Accessing the database of a remote machine via Grafana locally

Hello,

I installed Grafana on my local PC, I can access it via: http://localhost:3000/ 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?

Yes, you can do this. Make sure to type the Host as the IP address:port (172.43.34.65:3306). Here are the detailed instructions.

I installed Grafana on my local PC, I can access it via:
http://localhost:3000/

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).

Antony.

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

Does adding http:// make any difference? Any username and password to enter? Can your ping the machine using Cmd or terminal?