summary refs log tree commit diff
path: root/synapse/config/metrics.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Announce that legacy metric names are deprecated, will be turned off by ↵reivilibre2022-10-031-26/+0
| | | | default in Synapse v1.71.0 and removed altogether in Synapse v1.73.0. (#14024)
* Add experimental configuration option to allow disabling legacy Prometheus ↵reivilibre2022-08-241-0/+29
| | | | | metric names. (#13540) Co-authored-by: David Robertson <davidr@element.io>
* Allow dependency errors to pass through (#13113)Jacek Kuśnierz2022-06-301-7/+2
| | | | Signed-off-by: Jacek Kusnierz <jacek.kusnierz@tum.de> Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
* Remove code generating comments in configuration file (#12941)Shay2022-06-141-41/+3
|
* Add missing type hints to config classes. (#12402)Patrick Cloke2022-04-111-2/+7
|
* Use importlib.metadata to read requirements (#12088)David Robertson2022-03-011-1/+1
| | | | | | | | | | | | | | | | | | * Pull runtime dep checks into their own module * Reimplement `check_requirements` using `importlib` I've tried to make this clearer. We start by working out which of Synapse's requirements we need to be installed here and now. I was surprised that there wasn't an easier way to see which packages were installed by a given extra. I've pulled out the error messages into functions that deal with "is this for an extra or not". And I've rearranged the loop over two different sets of requirements into one loop with a "must be instaled" flag. I hope you agree that this is clearer. * Test cases
* Additional type hints for the config module, part 2. (#11480)Patrick Cloke2021-12-091-2/+4
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Enable flake8-bugbear, but disable most checks. (#9499)Jonathan de Jong2021-03-161-1/+3
| | | | * Adds B00 to ignored checks. * Fixes remaining issues.
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Fix some DETECTED VIOLATIONS in the config file (#7550)Richard van der Hoff2020-05-221-1/+2
| | | consistency ftw
* Fix a small typo in the `metrics_flags` config option. (#7171)Andrew Morgan2020-03-301-1/+1
|
* Add config linting script that checks for bool casing (#6203)Andrew Morgan2019-10-231-1/+1
| | | | | Add a linting script that enforces all boolean values in the default config be lowercase. This has annoyed me for a while so I decided to fix it.
* Refactor HomeserverConfig so it can be typechecked (#6137)Amber Brown2019-10-101-0/+2
|
* add report_stats_endpoint config option (#6012)Sorunome2019-09-121-0/+9
| | | This PR adds the optional `report_stats_endpoint` to configure where stats are reported to, if enabled.
* Check dependencies on setup in the nicer way. (#5989)Jorik Schellekens2019-09-111-7/+5
|
* Servers-known-about statistic (#5981)Amber Brown2019-09-071-0/+31
|
* Don't load the generated config as the default.Richard van der Hoff2019-06-241-1/+1
| | | | It's too confusing.
* Pass config_dir_path and data_dir_path into Config.read_config. (#5522)Richard van der Hoff2019-06-241-1/+1
| | | | | | * Pull config_dir_path and data_dir_path calculation out of read_config_files * Pass config_dir_path and data_dir_path into read_config
* Run Black. (#5482)Amber Brown2019-06-201-5/+3
|
* Comment out most options in the generated config. (#4863)Richard van der Hoff2019-03-191-2/+2
| | | | | | | | | | | | | | | | | | | | Make it so that most options in the config are optional, and commented out in the generated config. The reasons this is a good thing are as follows: * If we decide that we should change the default for an option, we can do so, and only those admins that have deliberately chosen to override that option will be stuck on the old setting. * It moves us towards a point where we can get rid of the super-surprising feature of synapse where the default settings for the config come from the generated yaml. * It makes setting up a test config for unit testing an order of magnitude easier (see forthcoming PR). * It makes the generated config more consistent, and hopefully easier for users to understand.
* Merge pull request #4694 from matrix-org/erikj/fix_sentry_config_formatErik Johnston2019-02-201-0/+2
|\ | | | | Fixup generated metrics config
| * Fixup generated metrics configErik Johnston2019-02-201-0/+2
| |
* | Attempt to make default config more consistentRichard van der Hoff2019-02-191-0/+2
|/ | | | | | The general idea here is that config examples should just have a hash and no extraneous whitespace, both to make it easier for people who don't understand yaml, and to make the examples stand out from the comments.
* Fixup error handling and messageErik Johnston2019-02-181-5/+6
|
* FixupErik Johnston2019-02-181-1/+1
|
* Fixup comments and add warningErik Johnston2019-02-131-2/+7
|
* Raise an appropriate error message if sentry_sdk missingErik Johnston2019-02-121-1/+15
|
* Basic sentry integrationErik Johnston2019-02-121-0/+8
|
* Add a script to generate a clean config file (#4315)Richard van der Hoff2018-12-221-3/+9
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-221-3/+5
| | | | | | | | | | SYN-287 This requires that HS owners either opt in or out of stats reporting. When --generate-config is passed, --report-stats must be specified If an already-generated config is used, and doesn't have the report_stats key, it is requested to be set.
* Add backwards compat support for metrics, manhole and webclient config optionsErik Johnston2015-06-121-6/+0
|
* s/metric_interface/metric_bind_host/Erik Johnston2015-05-221-3/+3
|
* Enable changing the interface the metrics listener binds toErik Johnston2015-05-221-1/+5
|
* Update metrics.pyMark Haines2015-04-301-2/+2
|
* Manually generate the default config yaml, remove most of the commandline ↵Mark Haines2015-04-301-16/+13
| | | | arguments for synapse anticipating that people will use the yaml instead. Simpify implementing config options by not requiring the classes to hit the super class
* Option to serve metrics from their own localhost-only TCP port instead of ↵Paul "LeoNerd" Evans2015-03-121-0/+5
| | | | muxed on the main listener
* Commandline option to enable metrics systemPaul "LeoNerd" Evans2015-03-121-0/+31