From 4823c4515895714c118f6add8c5642bdcec228d5 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Tue, 3 Nov 2020 15:51:58 +0000 Subject: Add --test flag for testing new raiders --- lib/longboat/config.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'lib/longboat') diff --git a/lib/longboat/config.rb b/lib/longboat/config.rb index 7e793c1..f235154 100644 --- a/lib/longboat/config.rb +++ b/lib/longboat/config.rb @@ -5,15 +5,18 @@ module Longboat def self.parse! Optimist::options do # Collection interval - opt :raid_every, "Collection interval", type: Integer, default: 60 + opt :raid_every, "Collection interval", type: Integer, default: 60 # Job data - opt :raiders_path, "Paths to search for raiders", type: String, default: "./lib/raiders", multi: true - opt :metric_prefix, "Prefix for metric names", type: String, default: "longboat_" + opt :raiders_path, "Paths to search for raiders", type: String, default: "./lib/raiders", multi: true + opt :metric_prefix, "Prefix for metric names", type: String, default: "longboat_" # Sinatra server - opt :server_bind, "Server listening address", type: String, default: "127.0.0.1:8564" - opt :server_path, "Path to metrics", type: String, default: "/metrics" + opt :server_bind, "Server listening address", type: String, default: "127.0.0.1:8564" + opt :server_path, "Path to metrics", type: String, default: "/metrics" + + # Testing + opt :test, "Output metrics to stdout and quit", type: TrueClass, default: false end end end -- cgit v1.2.1