Using an old PC to mine crypto 😳 😬
• By Arman Drismir • 1 minute readThe PC I am using to run this webserver also happens to have a NVIDIA GTX 1060. I may as well see if I can mine crypto with it. My poor 1060 is not strong enough mine blocks, even on smaller coins, so I needed to find a mining pool for a coin that would not overwhelm my 3GB of VRAM. I found NEXA on f2pool which works perfectly!
Using lolMiner and an f2pool account I can start mining!
I cannot hope to make actual money from mining NEXA with a 1060 but I can hope to setup some nice analytics with prometheus and grafana.
Our starting point will be the api that lolMiner hosts on any machine it runs on. It serves stats in JSON format like this:
Unfortunately prometheus cannot use JSON as a data source so I wrote export_metrics.py
to host another endpoint that serves the lolMiner JSON as a prometheus target.
Now we have everything we need. After a few hours of setting up docker compose I had a fully dockerized grafana setup with lolMiner. You can check out the progress of lolMiner live at: coco-mine.drismir.ca