aboutsummaryrefslogtreecommitdiff
path: root/exporters-influxdb/pyExporter
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-07-25 13:01:57 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2021-07-25 13:01:57 +0200
commit154f9fa433e9c0e1ebae4d9e2e9a04b38a98194a (patch)
tree177a02f5fd696b7b8b5b6d6083022518736f416a /exporters-influxdb/pyExporter
parent81297babc033a6181b8bd3a051386d142b19cb19 (diff)
downloadouroboros-metrics-154f9fa433e9c0e1ebae4d9e2e9a04b38a98194a.tar.gz
ouroboros-metrics-154f9fa433e9c0e1ebae4d9e2e9a04b38a98194a.zip
pyExporter: Make bucket name configurable
Diffstat (limited to 'exporters-influxdb/pyExporter')
-rwxr-xr-xexporters-influxdb/pyExporter/oexport.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/exporters-influxdb/pyExporter/oexport.py b/exporters-influxdb/pyExporter/oexport.py
index 048d4ef..b5736fd 100755
--- a/exporters-influxdb/pyExporter/oexport.py
+++ b/exporters-influxdb/pyExporter/oexport.py
@@ -892,7 +892,9 @@ if __name__ == '__main__':
argparser = argparse.ArgumentParser(description="Ouroboros InfluxDB metrics exporter")
argparser.add_argument('-i', '--interval', type=int, default='1000',
help="Interval at which to collect metrics (milliseconds)")
+ argparser.add_argument('-b', '--bucket', type=str, default='ouroboros-metrics',
+ help="InfluxDB bucket to write to")
args = argparser.parse_args()
interval_ms = args.interval
- exporter = OuroborosExporter()
+ exporter = OuroborosExporter(bucket=args.bucket)
exporter.run(interval_ms=interval_ms)