From 2dfbe59da37290e8b105596b26c15f69b529e5fc Mon Sep 17 00:00:00 2001 From: Patrick Godwin <patrick.godwin@ligo.org> Date: Thu, 13 Jun 2019 07:25:05 -0700 Subject: [PATCH] gstlal_feature_aggregator, gstlal_feature_monitor: add option to connect to influx with auth, https --- gstlal-burst/bin/gstlal_feature_aggregator | 4 ++++ gstlal-burst/bin/gstlal_feature_monitor | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gstlal-burst/bin/gstlal_feature_aggregator b/gstlal-burst/bin/gstlal_feature_aggregator index 38f669d495..9f6a86161c 100755 --- a/gstlal-burst/bin/gstlal_feature_aggregator +++ b/gstlal-burst/bin/gstlal_feature_aggregator @@ -64,6 +64,8 @@ def parse_command_line(): group.add_option("--influx-hostname", help = "Specify the hostname for the influxDB database. Required if --data-backend = influx.") group.add_option("--influx-port", help = "Specify the port for the influxDB database. Required if --data-backend = influx.") group.add_option("--influx-database-name", help = "Specify the database name for the influxDB database. Required if --data-backend = influx.") + group.add_option("--enable-auth", default=False, action="store_true", help = "If set, enables authentication for the influx aggregator.") + group.add_option("--enable-https", default=False, action="store_true", help = "If set, enables HTTPS connections for the influx aggregator.") group.add_option("--data-type", metavar = "string", help="Specify datatypes to aggregate from 'min', 'max', 'median'. Default: max") group.add_option("--num-processes", type = "int", default = 2, help = "Number of processes to use concurrently, default 2.") parser.add_option_group(group) @@ -116,6 +118,8 @@ class StreamAggregator(object): hostname=options.influx_hostname, port=options.influx_port, db=options.influx_database_name, + auth=options.enable_auth, + https=options.enable_https, reduce_across_tags=False, ) else: ### hdf5 data backend diff --git a/gstlal-burst/bin/gstlal_feature_monitor b/gstlal-burst/bin/gstlal_feature_monitor index b0bebc45b3..ff46c9ce37 100755 --- a/gstlal-burst/bin/gstlal_feature_monitor +++ b/gstlal-burst/bin/gstlal_feature_monitor @@ -65,6 +65,8 @@ def parse_command_line(): group.add_option("--influx-hostname", help = "Specify the hostname for the influxDB database. Required if --data-backend = influx.") group.add_option("--influx-port", help = "Specify the port for the influxDB database. Required if --data-backend = influx.") group.add_option("--influx-database-name", help = "Specify the database name for the influxDB database. Required if --data-backend = influx.") + group.add_option("--enable-auth", default=False, action="store_true", help = "If set, enables authentication for the influx aggregator.") + group.add_option("--enable-https", default=False, action="store_true", help = "If set, enables HTTPS connections for the influx aggregator.") group.add_option("--data-type", metavar="string", help="Specify datatypes to aggregate from 'min', 'max', 'median'. Default = max") group.add_option("--num-processes", type = "int", default = 2, help = "Number of processes to use concurrently, default 2.") parser.add_option_group(group) @@ -121,6 +123,8 @@ class StreamMonitor(object): hostname=options.influx_hostname, port=options.influx_port, db=options.influx_database_name, + auth=options.enable_auth, + https=options.enable_https, reduce_across_tags=False, ) else: ### hdf5 data backend -- GitLab