Connection to Influxdb on Google Compute Engine


#1

Hi

I am trying to use influxdb on a virtual machine using Google Compute Engine. I have the database set up ok on the machine but now I am trying to access it remotely but having problems.

For example when I try to use the following:

curl -XPOST ‘http://xx.xx.xx.xx:8086/query’ --data-urlencode ‘q=CREATE DATABASE “mydb”’

to create a database it give me an error message saying: “Failed to connect to xx.xx.xx.xx port 8086: Operation timed out”

I did put in place a firewall rule to open port 8086 and ran an nmap to check the ports on the machine which showed the following:

Nmap scan report for xx.xx.xx.xx.bc.googleusercontent.com (xx.xx.xx.xx)
Host is up (0.049s latency).
Not shown: 996 filtered ports
PORT STATE SERVICE
22/tcp open ssh
3389/tcp closed ms-wbt-server
8083/tcp closed us-srv
8086/tcp open d-s-n

so it looks like the port is open (although I dont know what d-s-n means).

Any help would be appreciated.