Commit b15a6a97 authored by Alex Thomae's avatar Alex Thomae

Merge branch 'master' into 'latest'

Adds a method so that the exporter doesn't trigger a connection at start

See merge request docker/ripple-exporter!3
parents ae5a63bb eb30b3c3
......@@ -67,6 +67,10 @@ class RippleCollector:
LOG.warning('Could not retrieve balance. The result follows.')
LOG.warning('{}: {}'.format(r.get('result'), r.get('message')))
def describe(self):
""" Just a needed method, so that collect() isn't called at startup """
return []
def collect(self):
""" The actual collector """
metrics = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment