Development
This commit is contained in:
parent
44e869433e
commit
9b2fcdf914
1 changed files with 8 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import config_utils
|
import config_utils
|
||||||
import factory
|
import factory
|
||||||
|
import mod_metrics
|
||||||
from pages.overview.view import load_dns_metrics, _dns_providers_table
|
from pages.overview.view import load_dns_metrics, _dns_providers_table
|
||||||
|
|
||||||
_PERIOD_OPTIONS = [
|
_PERIOD_OPTIONS = [
|
||||||
|
|
@ -31,6 +32,13 @@ def _period_selector_html(current_period):
|
||||||
|
|
||||||
|
|
||||||
def collect_tokens(cfg):
|
def collect_tokens(cfg):
|
||||||
|
try:
|
||||||
|
new = mod_metrics.collect_metrics(cfg)
|
||||||
|
if new:
|
||||||
|
mod_metrics.update_metrics_db(new)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
tokens = config_utils.collect_layout_tokens(cfg)
|
tokens = config_utils.collect_layout_tokens(cfg)
|
||||||
dns = cfg.get('upstream_dns', {})
|
dns = cfg.get('upstream_dns', {})
|
||||||
servers = dns.get('upstream_servers', [])
|
servers = dns.get('upstream_servers', [])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue