InfluxDB on a different machine than HA


I installed InfluxDB on a VPS in order to store my HomeAssistant data.
In my configuration.yaml, I add

  host: IP_of_my_VPS
  database: mydatabase
  user: myuser
  password: mypassword

But I don’t have any data that shows up in my database.

Anyone have the same kind of setup to help me?
I am using Home Assistant supervised on a Raspberry Pi3B +.
I don’t see anything in the logs.