summaryrefslogtreecommitdiff
path: root/searx/metrics
Commit message (Collapse)AuthorAge
* [fix] spellingjazzzooo2023-09-18
|
* [fix] prepare for pylint 2.14.0Markus Heiser2022-06-03
| | | | | | | | | | | | | | | | | | | Remove issue reported by Pylint 2.14.0: - no-self-use: has been moved to optional extension [1] - The refactoring checker now also raises 'consider-using-generator' messages for max(), min() and sum(). [2] .pylintrc: - <option name>-hint has been removed since long, Pylint 2.14.0 raises an error on invalid options - bad-continuation and bad-whitespace have been removed [3] [1] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers [2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/full.html#what-s-new-in-pylint-2-14-0 [2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.6/summary.html#summary-release-highlights Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [enh] settings.yml: implement general.enable_metricsAlexandre Flament2022-01-05
| | | | | | | * 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.
* [format.python] initial formatting of the python codeMarkus Heiser2021-12-27
| | | | | | | | | | This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] error recorder: avoid RuntimeError on some rare occasionAlexandre Flament2021-09-17
| | | | | | httpx.RequestError (subclass of httpx.HTTPError) has a property request. This property raises a RuntimeError if the attributes _request is None. To avoid a cascade of errors, this commit reads directly the _request attribute.
* [mod] searx.metrics & searx.search: use the engine loggersAlexandre Flament2021-09-10
| | | | metrics & processors use the engine logger
* [pylint] searx: drop no longer needed 'missing-function-docstring'Markus Heiser2021-09-07
| | | | | Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [refactor] metrics.get_reliabilities() - make code more readableMarkus Heiser2021-05-22
| | | | | | | | - init stat values by None - drop round_or_none - don't try to get percentage if base is 'None' Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] metrics: processing time = total time if there is no http timeAlexandre Flament2021-05-22
| | | | | | It was previsouly None Fix /stats
* [mod] searx.metrics.error_recorder: store relative file name instead of the ↵Alexandre Flament2021-04-27
| | | | full absolute file name.
* [pylint] tag PYLINT_FILES by comment `# lint: pylint`Markus Heiser2021-04-26
| | | | | | | These py files are linted by `test.pylint`, all other files are linted by `test.pep8`. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] /stats : detail per engineAlexandre Flament2021-04-25
| | | | | allow to submit a github issue including the technical details (exceptions, errors, warning, checker result)
* Fix PEP8Alexandre Flament2021-04-24
|
* [mod] /stats : add reliability column and sort by column linksAlexandre Flament2021-04-24
|
* [mod] metrics: add to pylint and justify indentationsMarkus Heiser2021-04-24
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] update /statsAlexandre Flament2021-04-24
|
* [mod] metrics: add secondary parameterAlexandre Flament2021-04-21
| | | | | | | | Some error won't stop the engine: * additional HTTP redirects for example * some invalid results secondary=True allows to flag these errors as not important.
* [enh] rewrite and enhance metricsAlexandre Flament2021-04-21