From 154f9fa433e9c0e1ebae4d9e2e9a04b38a98194a Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 25 Jul 2021 13:01:57 +0200 Subject: pyExporter: Make bucket name configurable --- exporters-influxdb/pyExporter/oexport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'exporters-influxdb') 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) -- cgit v1.2.3