jzck / prometheus-upsc-exporter

:electric_plug: Network UPS Tools exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run exporter on remote docker host

proggaras opened this issue · comments

Is there a way to run the exporter on a remote Docker host?
Already tried those:

docker run -p 9614:9614 --name usv -d jzck/upsc-exporter -e "UPS_TARGET=tecnoware-ups@192.168.159.10"
docker run -p 9614:9614 --name usv -d jzck/upsc-exporter -e "UPS_TARGET=tecnoware-ups@192.168.159.10:3493 upsremote secret slave"

It ends always with such an error:
line: inetd: UPS_TARGET=tecnoware-ups@192.168.159.10: No such file or directory

On server side:
Port is open:
tcp LISTEN 0 16 192.168.159.10:3493 0.0.0.0:*
User is created:

[upremote]
  password = secret
  upsmon slave 

Any idea? Thx!

You habe to pass the env before the image. Please correct the documentation:
docker run -p 9614:9614 -e UPS_TARGET=tecnoware-ups@192.168.159.10 -d jzck/upsc-exporter