# Prometheus Storj-Exporter

**URL:** <https://forum.storj.io/t/prometheus-storj-exporter/1939>\
**Category:** getting started\
**Tags:** monitoring\
**Created:** [September 26, 2019, 10:39am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939 "2019-09-26T10:39:28Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [August 24, 2020, 8:14am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/165 "2020-08-24T08:14:07Z")

</div>

When i type 192.168.1.13:9651 (from any PC in local network), i see page full of info, including satellites and etc. So believe port and prometheus OK.  
Yes, o do make prometheus service restart after changing config file.  
The thing is, that when i add second node there are two options 1. everytings stops working at all (i cant see 1st node as well). 2. Something mess up and i see 3 nodes in the dashboard, but only 1 works. I believe this is the problem in config file. where JOB’s are added.

# HELP python\_gc\_objects\_collected\_total Objects collected during gc

# TYPE python\_gc\_objects\_collected\_total counter

python\_gc\_objects\_collected\_total{generation=“0”} 233.0  
python\_gc\_objects\_collected\_total{generation=“1”} 100.0  
python\_gc\_objects\_collected\_total{generation=“2”} 0.0

# HELP python\_gc\_objects\_uncollectable\_total Uncollectable object found during GC

# TYPE python\_gc\_objects\_uncollectable\_total counter

python\_gc\_objects\_uncollectable\_total{generation=“0”} 0.0  
python\_gc\_objects\_uncollectable\_total{generation=“1”} 0.0  
python\_gc\_objects\_uncollectable\_total{generation=“2”} 0.0

# HELP python\_gc\_collections\_total Number of times this generation was collected

# TYPE python\_gc\_collections\_total counter

python\_gc\_collections\_total{generation=“0”} 51.0  
python\_gc\_collections\_total{generation=“1”} 4.0  
python\_gc\_collections\_total{generation=“2”} 0.0

# HELP python\_info Python platform information

# TYPE python\_info gauge

python\_info{implementation=“CPython”,major=“3”,minor=“7”,patchlevel=“8”,version=“3.7.8”} 1.0

# HELP process\_virtual\_memory\_bytes Virtual memory size in bytes.

# TYPE process\_virtual\_memory\_bytes gauge

process\_virtual\_memory\_bytes 2.7447296e+07

# HELP process\_resident\_memory\_bytes Resident memory size in bytes.

# TYPE process\_resident\_memory\_bytes gauge

process\_resident\_memory\_bytes 2.1241856e+07

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [August 24, 2020, 10:06am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/166 "2020-08-24T10:06:38Z")

</div>

Can you check on the prometheus site whether it has data for both nodes?

 ![grafik](https://storj-s3.bcdn.literatehosting.net/original/2X/e/e8838af95be3df3335623514086d1bd8a6fc74ef.png)

---

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [August 24, 2020, 10:49am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/167 "2020-08-24T10:49:24Z")

</div>

Looks like i’ve messed up something.  
Storj-Exporter is not runing on the second machine anymore. And i can’t start that docker container 😑

docker ps -a  
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES  
0570ee073ff6 anclrii/storj-exporter:latest “python ./storj-expo…” 13 hours ago Restarting (1) 1 second ago

It keeps restarting for some reason…

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [August 24, 2020, 10:57am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/168 "2020-08-24T10:57:57Z")

</div>

remove it and create it again.

---

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [August 24, 2020, 11:05am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/169 "2020-08-24T11:05:54Z")

</div>

Does not help.  
I use NOT a standard name of stragenode (as well as port). maybe that’s the problem? If you look at my command, you see i use “storagenode2” as this is the name of docker container. If i remove “2” i get error, as that container does not exist. With “2” at the end, it starting up, but keeps restarting. As well i have a non standard (not 14002) port for dashboard. Maybe this could be a problem?

docker run -d --restart=unless-stopped --link=storagenode2 --name=storj-exporter -p 9651:9651 anclrii/storj-exporter:latest # or your custom options

---

<div class="post-metadata">

**Author:** ![Krystof](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/krystof/32/7832_2.png) [@Krystof](https://forum.storj.io/u/Krystof)\
**Post date:** [August 24, 2020, 11:08am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/170 "2020-08-24T11:08:56Z")

</div>

Non standart port is problem.  
I edit this with “portainer” you can edit enviroment where is the port 14002

---

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [August 24, 2020, 11:22am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/171 "2020-08-24T11:22:40Z")

</div>

Sorry did not understood where is that place, where i should EDIT it ?

---

<div class="post-metadata">

**Author:** ![Krystof](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/krystof/32/7832_2.png) [@Krystof](https://forum.storj.io/u/Krystof)\
**Post date:** [August 24, 2020, 11:43am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/172 "2020-08-24T11:43:01Z")

</div>

on synology I edit this ![var](https://lc-storj.ams3.digitaloceanspaces.com/original/2X/b/b514aea42e9e14126b05b291deac4f3792841e7f.png)

STORJ\_API\_PORT is set to non standard “15003” so you must define in the storj-exporter container

I am not docker expert I edit this in synology GUI or portainer on ubuntu

STORJ\_HOST\_ADDRES can be a ip adress

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [August 24, 2020, 12:25pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/173 "2020-08-24T12:25:32Z")

</div>

This is for my 4th node on the same host:

```auto
docker run -d --restart=unless-stopped --link=storagenode4 --name=storj-exporter4 -p 9654:9651 -e STORJ_HOST_ADDRESS="storagenode4" anclrii/storj-exporter:latest

```

---

<div class="post-metadata">

**Author:** ![Krystof](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/krystof/32/7832_2.png) [@Krystof](https://forum.storj.io/u/Krystof)\
**Post date:** [August 24, 2020, 1:27pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/174 "2020-08-24T13:27:58Z")

</div>

@node1 try this

```auto
docker run -d --restart=unless-stopped --link=storagenode2 --name=storj-exporter2 -p 9651:9651 -e STORJ_HOST_ADDRESS="USE IP ADRESS" -e STORJ_API_PORT="YOUR NON STANDARD PORT" anclrii/storj-exporter:latest

```

---

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [August 24, 2020, 6:59pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/175 "2020-08-24T18:59:18Z")

</div>

Thank you! worked out!!!

Now i would like to connect another node, that is in different location. These two spots does not have a VPN between them and i don’t want to arrange it. Maybe there is a way to use encrypted data scrubbing?

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [August 24, 2020, 7:01pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/176 "2020-08-24T19:01:55Z")

</div>

you can set up an ssh tunnel.

---

<div class="post-metadata">

**Author:** ![goldyka](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/goldyka/32/66_2.png) [@goldyka](https://forum.storj.io/u/goldyka)\
**Post date:** [August 27, 2020, 12:35am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/177 "2020-08-27T00:35:33Z")

</div>

Ive been runing storj exporter - prometheus - grafana trio for almost a month now, but every day for 3 hours i get an “out of bonds” error from prometheus and grafana stops, then it gets fixed by itself. Any ideas?

---

<div class="post-metadata">

**Author:** ![greener](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/greener/32/62_2.png) [@greener](https://forum.storj.io/u/greener)\
**Post date:** [August 27, 2020, 12:42am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/178 "2020-08-27T00:42:58Z")

</div>

Probably related to system time drift. Are you running ntpd or similar?

> <https://github.com/prometheus/prometheus/issues/6554>
>
> It appears that Prometheus does not accept my metrics. The metrics I am trying to scrape do not include timestamps. This...

---

<div class="post-metadata">

**Author:** ![goldyka](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/goldyka/32/66_2.png) [@goldyka](https://forum.storj.io/u/goldyka)\
**Post date:** [August 27, 2020, 12:47am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/179 "2020-08-27T00:47:57Z")

</div>

Yeah im running ntp on prometheus/grafana server, and also on every storj node…

---

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [October 2, 2020, 10:05am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/181 "2020-10-02T10:05:53Z")

</div>

Stucked again 😑

docker run -d --restart=unless-stopped -p 9651:9651   
-e STORJ\_HOST\_ADDRESS=“storagenode3”   
-e STORJ\_API\_PORT=“14003”   
–link=storagenode3   
–name=storj-exporter3 anclrii/storj-exporter:latest

Conteiner start’s up, but keeps restarting every few seconds.  
Also have tried:

-e STORJ\_HOST\_ADDRESS=“localhost”   
and  
-e STORJ\_HOST\_ADDRESS=“127.0.01”   
and  
-e STORJ\_HOST\_ADDRESS=“192.168.0.14”   
and even without this “host\_address” line at all.

Same story 😑

---

<div class="post-metadata">

**Author:** ![Krystof](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/krystof/32/7832_2.png) [@Krystof](https://forum.storj.io/u/Krystof)\
**Post date:** [October 2, 2020, 10:18am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/182 "2020-10-02T10:18:54Z")

</div>

try to see to logs

maybe port 9651 isnt free ?  
try change external port  
docker run -d --restart=unless-stopped -p 9652:9651…

---

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [October 2, 2020, 10:32am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/183 "2020-10-02T10:32:52Z")

</div>

Sorry forgot to add.  
The log show this:

standard\_init\_linux.go:211: exec user process caused “exec format error”

Was trying to find something about this error. There are many pages about this error, but could not find useful answer.

---

<div class="post-metadata">

**Author:** ![node1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/node1/32/6289_2.png) [@node1](https://forum.storj.io/u/node1)\
**Post date:** [October 2, 2020, 11:19am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/184 "2020-10-02T11:19:22Z")

</div>

Could it be because of this:

_So a Docker file built on Intel will only work on Intel, and a Docker file build for Arm32 will only work for Arm32_ ?

As the problem on RPi. while my other node is on PC.

---

<div class="post-metadata">

**Author:** ![Krystof](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/krystof/32/7832_2.png) [@Krystof](https://forum.storj.io/u/Krystof)\
**Post date:** [October 2, 2020, 11:28am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/185 "2020-10-02T11:28:19Z")

</div>

maybe, I dont have RPi

So what about have storj-exporter on PC and as HOST\_ADDRESS and port set RPI ?

I have prometheus and grafana on synology and 4x storj exporter in synology docker and one sotragenode on synology, three nodes in diferent locations and works fine…

[Previous page](https://forum.storj.io/t/prometheus-storj-exporter/1939.md?page=8)

[Next page](https://forum.storj.io/t/prometheus-storj-exporter/1939.md?page=10)
