How to make sure the Storj API is opened?

Hello forum. I am currently trying to get promethues exporter working. And no matter what i do i cant get my data out of docker?

My dashboards are working fine - so i whould think the api was good. I guess not.
I have 3 nodes in the following setup:
storj GUI windows: 14002 port
Docker10TB: 14003
Docker4TB: 14004

My run command for the 4TB node:
docker run -d --restart unless-stopped --stop-timeout 300 -p 28969:28967/tcp -p 28969:28967/udp -p 127.0.0.1:14004:14002 -e WALLET=“0xFBF22d386c10aeb329A8C245e99F9AB4Db92D16d” -e EMAIL=“xxx” -e ADDRESS=“83.89.251.143:28969” -e STORAGE=“3TB” --mount type=bind,source=“F:\Storj\Identity”,destination=/app/identity --mount type=bind,source=“F:\Storj\data”,destination=/app/config --name storagenode4TB storjlabs/storagenode:latest

My 10TB run command:
docker run -d --restart unless-stopped --stop-timeout 300 -p 28968:28967/tcp -p 28968:28967/udp -p 127.0.0.1:14003:14002 -e WALLET=“0xFBF22d386c10aeb329A8C245e99F9AB4Db92D16d” -e EMAIL=“xxx” -e ADDRESS=“83.89.251.143:28968” -e STORAGE=“10TB” --mount type=bind,source=“C:\Users\andre\AppData\Roaming\Storj\Identity2\Identity\storagenode”,destination=/app/identity --mount type=bind,source=“E:\StorjData”,destination=/app/config --name storagenode10TB storjlabs/storagenode:latest

And ofcourse all the dashboard as working as intended. But i just cant get the data extracted with promethues. I have so far tried these commands:

docker run -d --link=storagenode4TB --name=storj-exporter4TB -p 9651:9651 -e STORJ_HOST_ADDRESS=storagenode4TB anclrii/storj-exporter:latest

I get a page that cant load. so 100% not working.

i also did:
docker run -d --link=storagenode4TB --name=storj-exporter4TB -p 9651:9651 -e STORJ_HOST_ADDRESS=storagenode4TB:14002 anclrii/storj-exporter:latest

That does return a page but the data is not correct. and docker still seems to belive my nodes port is 14002.

I can also do:
docker run -d --link=storagenode4TB --name=storj-exporter4TB -p 9651:9651 -e STORJ_HOST_ADDRESS=localhost:14002 anclrii/storj-exporter:latest
and a page returns also with wrong/no data.

What am i doing wrong?! :smiley:
Thanks guys

Tried this command also:
docker run -d --link=storagenode4TB --name=storj-exporter4TB -p 9651:9651 -e STORJ_HOST_ADDRESS=127.0.0.1:14002 anclrii/storj-exporter:latest

also returns a page with wrong data:

Hi.Again me.I tried to point you to the right direction, but it seems need to do other way.
Remove 127.0.0.1 from storagenode run command
docker run -d --restart unless-stopped --stop-timeout 300 -p 28969:28967/tcp -p 28969:28967/udp -p 14004:14002 -e WALLET=“0xFBF22d386c10aeb329A8C245e99F9AB4Db92D16d” -e EMAIL=“xxx” -e ADDRESS=“83.89.251.143:28969” -e STORAGE=“3TB” --mount type=bind,source=“F:\Storj\Identity”,destination=/app/identity --mount type=bind,source=“F:\Storj\data”,destination=/app/config --name storagenode4TB storjlabs/storagenode:latest

Figure out your internal ip of the server with ipconfig/all.Then use your internal ip in exporter startup command.

docker run -d --restart=unless-stopped --name=storj-exporter -p 9651:9651 -e STORJ_HOST_ADDRESS=192.168.1.101 -e STORJ_API_PORT=14004 anclrii/storj-exporter:latest
Change 192.168.1.101 to your internal ip from ipconfig/all

It wont work in any way with localhost or 127.0.0.1
I also understand that your dashboard works with localhost, but the exporter not work that way

2 Likes

You are amazing!
I have a working dashboard…

Two more questions:
How do i get the: Panel plugin not found: yesoreyeram-boomtable-panel Working? :smiley:

And do you know if i can also get this working for the windows GUI install? so far i have tried the same method but i dont think that api is open.
Thanks again!

Just go to your admin setting. there is a point plugins.

yourgrafana.url/plugins?filterBy=all&filterByType=all&q=boom table

maybe this link works :smiley:

2 Likes

Thank you - That is working.!

All i need now is to get this running for the windows GUI install :smiley: