app: check not_migrating before registering metrics
This commit is contained in:
parent
543e4ef3e3
commit
7f9b3b9b64
1 changed files with 4 additions and 3 deletions
|
@ -100,9 +100,10 @@ class AutomationCollector(Collector):
|
|||
yield c
|
||||
|
||||
|
||||
REGISTRY.register(DefinedProxiesCollector())
|
||||
REGISTRY.register(BlockedProxiesCollector())
|
||||
REGISTRY.register(AutomationCollector())
|
||||
if not_migrating():
|
||||
REGISTRY.register(DefinedProxiesCollector())
|
||||
REGISTRY.register(BlockedProxiesCollector())
|
||||
REGISTRY.register(AutomationCollector())
|
||||
|
||||
|
||||
@app.route('/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue