mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-11-25 10:50:39 +00:00
feat: add loop delay option as cli flag
This commit is contained in:
parent
796225c8f1
commit
c40eac65f4
@ -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"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user