feat: add loop delay option as cli flag

This commit is contained in:
Robert Kaussow 2021-06-09 21:10:51 +02:00
parent 3a527bf6a9
commit 9bdfc9930e
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -41,6 +41,13 @@ class PrometheusSD:
parser.add_argument(
"-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(
"-v", dest="logging.level", action="append_const", const=-1, help="increase log level"
)