Skip to content

Commit

Permalink
bump to nvidia-2, verbose claymore exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
abuisine committed Dec 12, 2017
1 parent 330a690 commit c8c4f94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Dockerfile.nvidia
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM abuisine/nvidia:375.66-ubuntu1704-4

LABEL maintainer="Alexandre Buisine <[email protected]>"
LABEL version="10.0-nvidia-1"
ENV CLAYMORE_VERSION="10.0"

LABEL maintainer="Alexandre Buisine <[email protected]>" version="${CLAYMORE_VERSION}-nvidia-2"

RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
&& apt-get install -yqq --no-install-recommends \
Expand All @@ -12,8 +13,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
&& apt-get -yqq clean \
&& rm -rf /var/lib/apt/lists/*

ENV CLAYMORE_VERSION="10.0"

WORKDIR /home/claymore
RUN curl -Lks https://github.com/nanopool/Claymore-Dual-Miner/releases/download/v${CLAYMORE_VERSION}/Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal.AMD.NVIDIA.GPU.Miner.v${CLAYMORE_VERSION}.-.LINUX.tar.gz | tar zxvf - \
&& for i in *bin; do ln $i e$i; done
Expand Down
5 changes: 3 additions & 2 deletions resources/Claymore.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from pynvml import *

log = logging.getLogger('prometheus-claymore-exporter')
log = logging.getLogger('claymore-exporter')

def launch(args, metadata, gpu_uuid_short):

Expand Down Expand Up @@ -70,7 +70,6 @@ def getAPIStat(self):
return stat['result']

def collect(self):
log.info('collecting')
stat = self.getAPIStat()

if ( not stat ):
Expand Down Expand Up @@ -117,5 +116,7 @@ def collect(self):
metric.add_metric(self.labels.values(), float(fan_speed_percent))
yield metric

log.info('collected hashrate:%.1fMHs accepted:%d rejected:%d', float(eth_hashrate_total_mhs), int(eth_shares_accepted), int(eth_shares_rejected))

except Exception as e:
log.warning(e, exc_info=True)

0 comments on commit c8c4f94

Please sign in to comment.