mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
knot-exporter: no zone timers by default
This commit is contained in:
parent
264b92299d
commit
672967638c
1 changed files with 15 additions and 7 deletions
|
|
@ -215,18 +215,26 @@ def main():
|
|||
help="disable collection of zone status"
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--no-zone-timers",
|
||||
action='store_false',
|
||||
help="disable collection of zone timer settings"
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--no-zone-serial",
|
||||
action='store_false',
|
||||
help="disable collection of zone serial"
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--zone-timers",
|
||||
action='store_true',
|
||||
default=False,
|
||||
help="enable collection of zone SOA timer values"
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--no-zone-timers",
|
||||
action='store_const',
|
||||
help="supported for compatibility reasons; no effect",
|
||||
# deprecated=True # in python >=3.13
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
REGISTRY.register(KnotCollector(
|
||||
|
|
@ -237,7 +245,7 @@ def main():
|
|||
args.no_global_stats,
|
||||
args.no_zone_stats,
|
||||
args.no_zone_status,
|
||||
args.no_zone_timers,
|
||||
args.zone_timers,
|
||||
args.no_zone_serial,
|
||||
))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue