# 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:** 22

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [February 28, 2023, 9:15am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/429 "2023-02-28T09:15:01Z")

</div>

ah - then i dont think i can access the storj api? how do i confirm that? or make sure its working?

 ![Skærmbillede 2023-02-28 kl. 10.11.22](https://storj-s3.bcdn.literatehosting.net/original/2X/e/efec2c487ba87613e4c33356c462d0dcff1467e9.png)

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/7/70e49bc4d646078569567b9e8f430736f7dadcd3.jpeg)

What am i doing wrong? the exporter is using the nodes internal ip it seems to be correct?

---

<div class="post-metadata">

**Author:** ![maxsch](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/maxsch/32/1130_2.png) [@maxsch](https://forum.storj.io/u/maxsch)\
**Post date:** [February 28, 2023, 9:17am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/430 "2023-02-28T09:17:47Z")

</div>

You have to link the container or use the local IP with port of your storaganode…

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [February 28, 2023, 9:40am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/431 "2023-02-28T09:40:19Z")

</div>

I belive i am using the local ip with the correct port?

How do i link the container? 😃

---

<div class="post-metadata">

**Author:** ![remo](https://storj.bcdn.literatehosting.com/letter_avatar/remo/32/6_449c533f586939b6e5f246632a46421f.png) [@remo](https://forum.storj.io/u/remo)\
**Post date:** [February 28, 2023, 2:54pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/432 "2023-02-28T14:54:55Z")

</div>

This is the way to link the ip and port:  
docker run -d --restart=unless-stopped --name=storj-exporter -p 9651:9651 -e STORJ\_HOST\_ADDRESS=192.168.1.101 -e STORJ\_API\_PORT=14002  
anclrii/storj-exporter:latest

And this one is a way to link container:  
docker run -d --link=storagenode --name=storj-exporter -p 9651:9651 -e STORJ\_HOST\_ADDRESS=storagenode anclrii/storj-exporter:latest

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [February 28, 2023, 7:01pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/433 "2023-02-28T19:01:14Z")

</div>

Im sorry i seem stupid: i just dont understand. i can see all the data on the ip: [http://127.0.0.1:14004/](http://127.0.0.1:14004/)  
which is my 4TB storj node.

 ![Skærmbillede 2023-02-28 kl. 19.56.48](https://storj-s3.bcdn.literatehosting.net/original/2X/c/c2ec4798d9f308065b04155e09877c456bd57b77.jpeg)

Running this command:  
docker run -d --link=storagenode4TB --name=storj-exporter4TB -p 9651:9651 -e STORJ\_HOST\_ADDRESS=127.0.0.1:14004 anclrii/storj-exporter:latest

Does yield this page:

 ![Skærmbillede 2023-02-28 kl. 19.56.59](https://storj-s3.bcdn.literatehosting.net/original/2X/c/c243f82257e6ff9b7dbd36220387aca704cc7505.jpeg)

But the data is just not there?  
What is wrong?

 ![Skærmbillede 2023-02-28 kl. 19.57.16](https://storj-s3.bcdn.literatehosting.net/original/2X/6/6b56f419a6c90f06fd82057e386c7f7df459fb9f.jpeg)

---

<div class="post-metadata">

**Author:** ![remo](https://storj.bcdn.literatehosting.com/letter_avatar/remo/32/6_449c533f586939b6e5f246632a46421f.png) [@remo](https://forum.storj.io/u/remo)\
**Post date:** [March 1, 2023, 3:00am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/434 "2023-03-01T03:00:41Z")

</div>

It should be:  
docker run -d --link=storagenode4TB --name=storj-exporter4TB -p 9651:9651 -e STORJ\_HOST\_ADDRESS=storagenode4TB anclrii/storj-exporter:latest

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [March 2, 2023, 9:31am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/435 "2023-03-02T09:31:37Z")

</div>

Thanks for the effort! i have no idea why but it does not work:

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/9/91c85cc7d26dcdb4ce82eb2cdaac82fc135b267c.png)

Its states the storj port is 14002 but that 4TB node is running on port 14004.

when i run this exact script:  
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 tried adding:  
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.

Its weird. How do i know for sure i have open up to the storj api?

---

<div class="post-metadata">

**Author:** ![maxsch](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/maxsch/32/1130_2.png) [@maxsch](https://forum.storj.io/u/maxsch)\
**Post date:** [March 2, 2023, 12:53pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/436 "2023-03-02T12:53:20Z")

</div>

> [@HGPlays](#):
>
> Its states the storj port is 14002 but that 4TB node is running on **port 14004**.

Then try like here written with IP and Port but for your storagenode 🙂

> [@remo](#):
>
> This is the way to link the ip and port:  
> docker run -d --restart=unless-stopped --name=storj-exporter -p 9651:9651 -e STORJ\_HOST\_ADDRESS= **192.168.1.101** -e STORJ\_API\_PORT= **14002**  
> anclrii/storj-exporter:latest

---

<div class="post-metadata">

**Author:** ![remo](https://storj.bcdn.literatehosting.com/letter_avatar/remo/32/6_449c533f586939b6e5f246632a46421f.png) [@remo](https://forum.storj.io/u/remo)\
**Post date:** [March 2, 2023, 1:36pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/437 "2023-03-02T13:36:52Z")

</div>

I am not sure, and don`t want to experiment with my node, but I think the storagenode must run with ports opened to all networks.You anyway not open that port in your router, so this way it will be available in your home network.This line do that.

-p 14002:14002   
Other thing is that make sure you don`t change the second port in that command, only the first.  
After that you need to use internal ip of that machine, with the port of your choice.  
And then try to use that examples from upper post.Debug it.Look into it.Change port here and there, and you will have a sucess  
I hope you understand the main problem.You need to allow that 1400x port to all networks.  
And try again with the examples, suited for your setup

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [March 3, 2023, 1:21pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/438 "2023-03-03T13:21:43Z")

</div>

Thanks - its up and running!

Quick question - can i rename the nodes in grafana? so instead of: xxx.xxx.xx.x:14002 (ip of node)  
i can change it to: storagenode4TB?

![image](https://storj-s3.bcdn.literatehosting.net/original/2X/b/b57f8959d31e1186695d5507764089b0cf219b6f.png)

---

<div class="post-metadata">

**Author:** ![tylkomat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tylkomat/32/62_2.png) [@tylkomat](https://forum.storj.io/u/tylkomat)\
**Post date:** [March 3, 2023, 1:39pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/439 "2023-03-03T13:39:40Z")

</div>

In your scrape config you can configure a label:

```auto
scrape_configs:
  - job_name: 'storagenode'
    static_configs:
      - targets: ['storj-exporter-2.1:9651']
        labels:
          instance: 'storagenode 2.1'

```

---

<div class="post-metadata">

**Author:** ![agente](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/agente/32/1137_2.png) [@agente](https://forum.storj.io/u/agente)\
**Post date:** [May 5, 2023, 3:48pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/440 "2023-05-05T15:48:22Z")

</div>

Can I use exporter in a multinodes machine with about 100 nodes? Too load for the server?

---

<div class="post-metadata">

**Author:** ![ptC7H12](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptc7h12/32/7822_2.png) [@ptC7H12](https://forum.storj.io/u/ptC7H12)\
**Post date:** [November 7, 2023, 9:09pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/441 "2023-11-07T21:09:59Z")

</div>

I love this Dashboard, but I’m missing one thing and didn’t figure out how to do it…

How can I show the Suspension as % not only the checkmark?  
Maybe @greener or @kevink or someone else can help me out there?  
I don’t understand the JSON of Grafana. I’ve got the right query, I think, but I can not add the %-value instead of the checkmark.

---

<div class="post-metadata">

**Author:** ![ptC7H12](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptc7h12/32/7822_2.png) [@ptC7H12](https://forum.storj.io/u/ptC7H12)\
**Post date:** [November 7, 2023, 9:30pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/442 "2023-11-07T21:30:48Z")

</div>

Okay, I just figured out  
 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/a/af934f5805a6922d4a146c03768077bde80fde0a.png)

---

<div class="post-metadata">

**Author:** ![javierxam](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/javierxam/32/7816_2.png) [@javierxam](https://forum.storj.io/u/javierxam)\
**Post date:** [January 25, 2024, 11:00pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/443 "2024-01-25T23:00:15Z")

</div>

Im having problems with the exporter, all seems ok but logs say " Read timed out"·

In second node all is working fine

---

<div class="post-metadata">

**Author:** ![ptC7H12](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptc7h12/32/7822_2.png) [@ptC7H12](https://forum.storj.io/u/ptC7H12)\
**Post date:** [January 26, 2024, 11:37am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/444 "2024-01-26T11:37:38Z")

</div>

> [@javierxam](#):
>
> Im having problems with the exporter, all seems ok but logs say " Read timed out"·
> 
> In second node all is working fine

Type in Browser: `http://YOUR:IP:9651` what is the result?

---

<div class="post-metadata">

**Author:** ![kosti11](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kosti11/32/1134_2.png) [@kosti11](https://forum.storj.io/u/kosti11)\
**Post date:** [January 29, 2024, 11:02am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/445 "2024-01-29T11:02:12Z")

</div>

Hello. I have the same problem. When I go into this address I need to wait approx 1-2 min to get results.

---

<div class="post-metadata">

**Author:** ![ptC7H12](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptc7h12/32/7822_2.png) [@ptC7H12](https://forum.storj.io/u/ptC7H12)\
**Post date:** [January 29, 2024, 11:21am UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/446 "2024-01-29T11:21:47Z")

</div>

Are the DBs on SSD? SMR or CMR?

It’s “normal” when DBs are NOT on SSD. And SMRs also realy slow…

---

<div class="post-metadata">

**Author:** ![kosti11](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kosti11/32/1134_2.png) [@kosti11](https://forum.storj.io/u/kosti11)\
**Post date:** [January 29, 2024, 5:31pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/447 "2024-01-29T17:31:32Z")

</div>

DBs are on CMR HDD.  
20 characters.

---

<div class="post-metadata">

**Author:** ![ptC7H12](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptc7h12/32/7822_2.png) [@ptC7H12](https://forum.storj.io/u/ptC7H12)\
**Post date:** [January 29, 2024, 5:56pm UTC](https://forum.storj.io/t/prometheus-storj-exporter/1939/448 "2024-01-29T17:56:02Z")

</div>

Then think about moving DBs to SSD. That’s what solved it for me

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

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