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
|
yield c
|
||||||
|
|
||||||
|
|
||||||
REGISTRY.register(DefinedProxiesCollector())
|
if not_migrating():
|
||||||
REGISTRY.register(BlockedProxiesCollector())
|
REGISTRY.register(DefinedProxiesCollector())
|
||||||
REGISTRY.register(AutomationCollector())
|
REGISTRY.register(BlockedProxiesCollector())
|
||||||
|
REGISTRY.register(AutomationCollector())
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue