anclrii / Storj-Exporter

Prometheus exporter for monitoring Storj storage nodes
GNU General Public License v3.0
59 stars 19 forks source link

storagenode 1.5.2 error #28

Closed kevinkk525 closed 4 years ago

kevinkk525 commented 4 years ago

Since the update the exporter doesn't work correctly anymore:

Traceback (most recent call last):
  File "./storj-exporter.py", line 128, in <module>
    REGISTRY.register(StorjCollector())
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py", line 24, in register
    names = self._get_names(collector)
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py", line 64, in _get_names
    for metric in desc_func():
  File "./storj-exporter.py", line 62, in collect
    value = str(self.data[key])
yError: 'lastPingFromID'
phpbg commented 4 years ago

version is 1.5.2, not 0.5.2 (last storagenode update)

kevinkk525 commented 4 years ago

Fixed in latest release. Thanks, you are really quick.