feat: add loop delay option as cli flag

This commit is contained in:
Robert Kaussow 2021-06-09 21:10:51 +02:00
parent 796225c8f1
commit c40eac65f4

View File

@ -41,6 +41,13 @@ class PrometheusSD:
parser.add_argument( parser.add_argument(
"-o", "--output", dest="output_file", action="store", help="output file" "-o", "--output", dest="output_file", action="store", help="output file"
) )
parser.add_argument(
"-d",
"--loop-delay",
dest="loop_delay",
action="store",
help="delay between discovery runs"
)
parser.add_argument( parser.add_argument(
"-v", dest="logging.level", action="append_const", const=-1, help="increase log level" "-v", dest="logging.level", action="append_const", const=-1, help="increase log level"
) )