Glances Newbee question on setting up glances export to influx on windows

237 views
Skip to first unread message

Ralf Pfitzner

unread,
Nov 21, 2019, 6:34:21 AM11/21/19
to Glances Users
Hi all,

I assume, I'm doing something stupid and easily to find, but I just can grasp my error for now.

This is my setup:

Influx DB (integrated on from home assistant, running on Ubuntu server)
Config from within Hass.io add-on details
{
  "auth": true,
  "reporting": true,
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}

Database glances is up and running, local glances instance is reporting to it, fine.

Glances config within Hass.io add-on details:
{
  "log_level": "info",
  "process_info": false,
  "refresh_time": 10,
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "influxdb": {
    "enabled": true,
    "host": "a0d7b954-influxdb",
    "port": 8086,
    "username": "glances",
    "password": "somepassword",
    "database": "glances",
    "prefix": "localhost",
    "interval": 60
  }
}

The host name is from the influx db and looks like automatically set up by home-assistant add.on.

I know the right IP of the host, port 8086 is open, fine.

Now I have installed glances on a windows server, working fine when locally access, even the sensing of infos into home-assistant is working and showing correct values, fine.

Now I want to export glances data from the windows server to the influx db on the ubuntu server, setting up glances.config.
[global]
# Does Glances should check if a newer version is available on PyPI?
check_update=false

[influxdb]
# Configuration for the --export influxdb option
host=ip.of.ubuntu.server
port=8086
user=glances
password=somepassword
db=glances
prefix=mywindowsserver

Nothing happens in influx (data from ubuntu glances is coming fine).

So, where is the missing link?

Thanks upfront
Ralf

Ralf Pfitzner

unread,
Nov 21, 2019, 6:40:29 AM11/21/19
to Glances Users
By the way, I start glances with 

glances.exe -C c:\python38-32\Scripts\glances.conf --export influxdb -d

And here was the error :-)

Correct path to glances.conf is c:\python\python38-32\Scripts\glances.conf

Problem solved

Reply all
Reply to author
Forward
0 new messages