[enh] settings.yml: implement general.enable_metrics

* allow not to record metrics (response time, etc...)
* this commit doesn't change the UI. If the metrics are disabled
  /stats and /stats/errors will return empty response.
  in /preferences, the columns response time and reliability will be empty.
This commit is contained in:
Alexandre Flament 2021-12-26 22:44:46 +01:00
parent a7199bc085
commit 2134703b4b
8 changed files with 35 additions and 11 deletions

View file

@ -2,6 +2,7 @@ general:
debug: false # Debug mode, only for development
instance_name: "SearXNG" # displayed name
contact_url: false # mailto:contact@example.com
enable_metrics: true # record stats
brand:
new_issue_url: https://github.com/searxng/searxng/issues/new