# Questions regarding the logoutput and a Grafana dashboard

**URL:** <https://forum.storj.io/t/questions-regarding-the-logoutput-and-a-grafana-dashboard/24771>\
**Category:** Node Operators\
**Tags:** prometheus, grafana\
**Created:** [December 26, 2023, 9:59pm UTC](https://forum.storj.io/t/questions-regarding-the-logoutput-and-a-grafana-dashboard/24771 "2023-12-26T21:59:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CubeFan](https://storj.bcdn.literatehosting.com/letter_avatar/cubefan/32/5_5575768a8748004e209b776fc1b2916d.png) [@CubeFan](https://forum.storj.io/u/CubeFan)\
**Post date:** [December 26, 2023, 9:59pm UTC](https://forum.storj.io/t/questions-regarding-the-logoutput-and-a-grafana-dashboard/24771/1 "2023-12-26T21:59:30Z")

</div>

Hello everyone,

I have set up a Grafana dashboard as described here:

> [@How to monitor all nodes in your LAN using prometheus + grafana \[linux using docker\]](https://forum.storj.io/t/how-to-monitor-all-nodes-in-your-lan-using-prometheus-grafana-linux-using-docker/10998):
>
> 1. Setting up prometheus For storing all statistics of the nodes, we use prometheus. So choose one PC/Server where you want to run prometheus. It doesn’t need to be a powerful PC and it doesn’t need much space, you can decide how much space prometheus is allowed to use or how long you want to store your statistics. However, make sure you choose a PC (or a directory) that doesn’t write to an SD card as that would shorten its lifespan significantly. On that chosen PC we first create a prometheus.…

> [@Log-Exporter for Prometheus with Grafana Dashboard](https://forum.storj.io/t/log-exporter-for-prometheus-with-grafana-dashboard/11250):
>
> I managed to finish my work on the log-exporter! If you followed my [How-To monitor all nodes in your lan](https://forum.storj.io/t/how-to-monitor-all-nodes-in-your-lan-using-prometheus-grafana-linux-using-docker) then adding this exporter will be easy for you. Installation using Docker sudo docker run -d --restart unless-stopped --user "1000:1000" \ -p 9144:9144 \ --mount type=bind,source="\<path\_to\_your\_logfile\_directory\>",destination=/app/logs \ --name storj-log-exporter \ kevinkk525/storj-log-exporter:latest -config /app/config.yml Change the container name to your liking, insert…

I have also made the adjustments that had to be made for the dashboard to display anything at all (create new Dockjer image with the customized config files)

My output now looks like this:

 ![grafik](https://storj-s3.bcdn.literatehosting.net/original/2X/0/0e65b1e944b944d54d77e955c8f66de0d945a5de.jpeg)  
So far everything is ok, but Upload, Upload canceled and Upload rejected do not match, I can’t get to 100%  
The avarage piece size doesn’t look right either, as you can see here again  
 ![grafik](https://storj-s3.bcdn.literatehosting.net/original/2X/5/5d6b9dcea467decd936c2cbb477575913cdde912.png)

What also surprises me is that under Debug the Sum of upload messages keeps growing, behind the I is this text “This should be around -20\<0\<20. Theoretically it should be 0 if all uploads successful/canceled/failed/rejected are summed up but restarting the exporter can miss a few messages.”

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

Could it be that upload rejected in the logs are now displayed like this?

```auto
2023-12-26T06:48:55Z	ERROR	piecestore	upload failed	{"process": "storagenode", "Piece ID": "TCFALGRMZKWPCEEPOH3X3AXEXHXMEREF56HYBKOOIP6MJXVOOLMQ", "Satellite ID": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S", "Action": "PUT", "error": "unexpected EOF", "errorVerbose": "unexpected EOF\n\tstorj.io/common/rpc/rpcstatus.Error:85\n\tstorj.io/storj/storagenode/piecestore.(*Endpoint).Upload:533\n\tstorj.io/common/pb.DRPCPiecestoreDescription.Method.func1:243\n\tstorj.io/drpc/drpcmux.(*Mux).HandleRPC:33\n\tstorj.io/common/rpc/rpctracing.(*Handler).HandleRPC:61\n\tstorj.io/common/experiment.(*Handler).HandleRPC:42\n\tstorj.io/drpc/drpcserver.(*Server).handleRPC:124\n\tstorj.io/drpc/drpcserver.(*Server).ServeOne:66\n\tstorj.io/drpc/drpcserver.(*Server).Serve.func2:114\n\tstorj.io/drpc/drpcctx.(*Tracker).track:35", "Size": 1703936, "Remote Address": "5.161.220.231:37634"}
2023-12-26T07:00:32Z	ERROR	piecestore	upload failed	{"process": "storagenode", "Piece ID": "VOSECYNVPISWOOJJSX7FKUCI2PRZ54NZHNQAO4Y55K5LSYNS2CNA", "Satellite ID": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S", "Action": "PUT", "error": "manager closed: unexpected EOF", "errorVerbose": "manager closed: unexpected EOF\n\tgithub.com/jtolio/noiseconn.(*Conn).readMsg:225\n\tgithub.com/jtolio/noiseconn.(*Conn).Read:171\n\tstorj.io/drpc/drpcwire.(*Reader).ReadPacketUsing:96\n\tstorj.io/drpc/drpcmanager.(*Manager).manageReader:226", "Size": 65536, "Remote Address": "5.161.211.187:33536"}

```

I have some of these entries

Has the output of the log changed so that I have to adjust this in Grafana so that the dashboard displays the info correctly? And what does the output mean? I also have this in the logs but it is explained by itself

```auto
2023-12-26T00:05:03Z	INFO	piecestore	upload canceled (race lost or node shutdown)	{"process": "storagenode", "Piece ID": "3LB7RBOW3ORFSUZRMCLBTULP2TEKOWEXE2YJOH4GW2AEY5IE4ACQ"}

```

I hope you can help me so that I can set up the dashboard correctly and, if necessary, do something to make the errors disappear

Thank you very much

If you still need information, I will of course be happy to provide it

Greetings CubeFan

---

<div class="post-metadata">

**Author:** ![CubeFan](https://storj.bcdn.literatehosting.com/letter_avatar/cubefan/32/5_5575768a8748004e209b776fc1b2916d.png) [@CubeFan](https://forum.storj.io/u/CubeFan)\
**Post date:** [January 2, 2024, 1:06pm UTC](https://forum.storj.io/t/questions-regarding-the-logoutput-and-a-grafana-dashboard/24771/2 "2024-01-02T13:06:06Z")

</div>

Does no one have any ideas?
