Hello,
This is a wonderful project, I really appreciate your efforts!
However, I am running in to trouble while setting it up. Here’s the deal:
I have a total of three nodes, 2 on 1 machine and 1 on another machine. I am still trying to set up the nodes running on the same machine (they run on different ports). Everything “appears” to be fine, however the data shown in Grafana is absolutely nonsensical.
To lay things out:
Node 1 - storagenode
- runs on ports (external:internal) 14002:14002. It has 1.6TB allocated and is full.
Node 2 - storagenode3tb
- runs on 14001:14002, respectively. It’s relatively new and has a few GB used with a total of 2.4TB allocated.
Here are excerpts from the Dockerfiles for each node’s Prometheus docker image:
storagenode
:
ENV STORJ_HOST_ADDRESS=storagenode STORJ_API_PORT=14002 STORJ_EXPORTER_PORT=9651
It runs on external port 9650
.
storagenode3tb
:
ENV STORJ_HOST_ADDRESS=storagenode3tb STORJ_API_PORT=14002 STORJ_EXPORTER_PORT=9651
This one runs on external port 9650
.
At first glance, everything seems fine, for example here is the disk usage reported by each Prometheus instance:
storagenode
:
# TYPE storj_diskSpace_used gauge
storj_diskSpace_used 1.600012061184e+012
storagenode3tb
:
# TYPE storj_diskSpace_used gauge
storj_diskSpace_used 6.422592256e+09
The Prometheus server has the following appended to prometheus.yml
:
- job_name: storagenode
static_configs:
- targets: ['192.168.13.73:9651', '192.168.13.73:9650']
and the data sources are scraped and evaluated every 60s.
Now, getting to Grafana and its nonsense. Here you will see 5 screen snips - 2 per node, refreshing the webpage immediately after taking the first screenshot for each. Last one is a view of “All” nodes.
The data doesn’t make sense!
Any help would be much appreciated!