1
0

Commit Graph

  • dea236e4fa Add missing commas Erik Johnston 2015-03-13 15:24:03 +00:00
  • 69135f59aa Implement registering with shared secret. Erik Johnston 2015-03-13 15:23:37 +00:00
  • 58367a9da2 Disable registration by default Erik Johnston 2015-03-13 12:59:45 +00:00
  • 58247c8b4b Also bump dependency link version Erik Johnston 2015-03-13 11:39:57 +00:00
  • 75bf48b905 Update tracer to give more information function_tracer Erik Johnston 2015-03-13 11:38:57 +00:00
  • f55bd3f94b bump dep on syweb 0.6.5 Matthew Hodgson 2015-03-12 18:56:53 +00:00
  • e90002ca1d Merge remote-tracking branch 'origin/develop' into metrics Paul "LeoNerd" Evans 2015-03-12 16:55:25 +00:00
  • bbb010a30f More sacrifices to the pep8 gods. David Baker 2015-03-12 16:53:12 +00:00
  • d1ae594ae5 Add a utility class that can be used to generate a twisted deferred aware call graph Erik Johnston 2015-03-12 16:49:27 +00:00
  • 05a056a409 Appease pyflakes Paul "LeoNerd" Evans 2015-03-12 16:45:05 +00:00
  • 0eb7e6b9a8 Delete unused import of NOT_READY_YET Paul "LeoNerd" Evans 2015-03-12 16:39:52 +00:00
  • 128cf2daf7 Appease pep8 Paul "LeoNerd" Evans 2015-03-12 16:24:38 +00:00
  • b98b4c135d Option to serve metrics from their own localhost-only TCP port instead of muxed on the main listener Paul "LeoNerd" Evans 2015-03-12 16:05:46 +00:00
  • a2cdd11d4a Fold the slightly-odd bind_port/secure_port/etc.. logic into SynapseHomeServer.start_listening() Paul "LeoNerd" Evans 2015-03-12 15:51:33 +00:00
  • e0214a263b Build MetricsResource as a specific HomeServer dependency Paul "LeoNerd" Evans 2015-03-12 15:33:53 +00:00
  • e75fa8bbbf Bugfix to sql_txn_timer increment - add only the per-TXN duration, not the total time ever spent since boot Paul "LeoNerd" Evans 2015-03-11 18:57:35 +00:00
  • c782e893ec Neater metrics from TransactionQueue Paul "LeoNerd" Evans 2015-03-10 18:24:52 +00:00
  • 89ac1fa8ba Add a counter to track total number of events served by the notifier Paul "LeoNerd" Evans 2015-03-10 18:06:24 +00:00
  • 2e4f0b2bd7 Replace the @metrics.counted annotations in federation with specifically-written counters and distributions Paul "LeoNerd" Evans 2015-03-10 15:29:22 +00:00
  • c1cdd7954d Add an .inc_by() method to CounterMetric; implement DistributionMetric a neater way Paul "LeoNerd" Evans 2015-03-10 15:54:16 +00:00
  • 63cb7ece62 Rename the timer metrics exported by synapse.storage to append _time, so the meaning of ':total' is clearer Paul "LeoNerd" Evans 2015-03-10 15:24:02 +00:00
  • 493e3fa0ca Don't forbid '_' in metric basenames any more, to allow things like foo_time Paul "LeoNerd" Evans 2015-03-10 15:23:33 +00:00
  • f1fbe3e09f Rename TimerMetric to DistributionMetric; as it could count more than just time Paul "LeoNerd" Evans 2015-03-10 15:21:03 +00:00
  • 642f725fd7 Pretend the 'getEvent' cache is just another cache in the set of all the others for metric Paul "LeoNerd" Evans 2015-03-09 20:39:17 +00:00
  • cbc0406be8 Export CacheMetric as hits+total, rather than hits+misses, as it's easier to derive hit ratio from that Paul "LeoNerd" Evans 2015-03-09 20:35:33 +00:00
  • 1748605c5d Count incoming HTTP requests per servlet that responds Paul "LeoNerd" Evans 2015-03-09 18:34:20 +00:00
  • 4d661ec0f3 Remember to emit final linefeed from /metrics page, or Prometheus gets upset Paul "LeoNerd" Evans 2015-03-06 19:08:47 +00:00
  • 0e847540c3 Prometheus needs "escaped" label values Paul "LeoNerd" Evans 2015-03-06 18:40:20 +00:00
  • 22b37b75db Kill unused CounterMetric.fetch() method Paul "LeoNerd" Evans 2015-03-06 17:08:25 +00:00
  • b0cf867319 Use _ instead of . as a metric namespacing separator, for Prometheus Paul "LeoNerd" Evans 2015-03-06 16:18:21 +00:00
  • 0b96bb793e Have all @metrics.counted use a single metric name vectored on the method name, rather than a brand new scalar counter per counted method Paul "LeoNerd" Evans 2015-03-06 15:39:14 +00:00
  • b3a0179d64 Bugfix to rendering output of vectored TimerMetrics Paul "LeoNerd" Evans 2015-03-06 15:35:23 +00:00
  • f9478e475b Rename Metrics' "keys" to "labels" Paul "LeoNerd" Evans 2015-03-06 15:28:06 +00:00
  • 399689dcc7 Provide some process resource usage metrics Paul "LeoNerd" Evans 2015-03-05 16:15:21 +00:00
  • fa319a5786 Add TimerMetrics to shadow the PerformanceCounters in synapse.storage; with the view to eventually replacing them entirely Paul "LeoNerd" Evans 2015-03-05 15:58:03 +00:00
  • 6d146e15df Put some gauge metrics on the number of notifier listeners, and notified-on objects (users, rooms, appservices) Paul "LeoNerd" Evans 2015-03-05 15:12:39 +00:00
  • 25187ab674 Collect per-SQL-verb timer stats on query execution time Paul "LeoNerd" Evans 2015-03-04 19:45:16 +00:00
  • f52acf3b12 Neater register_* methods on overall Metrics container Paul "LeoNerd" Evans 2015-03-04 19:43:46 +00:00
  • a99d6edc05 Neater implementation of metric render methods by pulling out 'render' as a base method that calls self.render_item Paul "LeoNerd" Evans 2015-03-04 19:28:17 +00:00
  • 72625f2f4d Initial hack at a TimerMetric; for storing counts + duration accumulators Paul "LeoNerd" Evans 2015-03-04 19:22:14 +00:00
  • e1a7e3564f Delete a couple of TODO markers of monitoring stats now done Paul "LeoNerd" Evans 2015-03-04 18:16:54 +00:00
  • 094803cf82 Put vector gauges on transaction queue pending PDU and EDU dicts Paul "LeoNerd" Evans 2015-03-04 18:15:34 +00:00
  • e9c4b0d178 Ensure that /_synapse/metrics response is UTF-8 encoded Paul "LeoNerd" Evans 2015-03-04 18:15:07 +00:00
  • 23ab0c68c2 Implement vector CallbackMetrics Paul "LeoNerd" Evans 2015-03-04 17:58:10 +00:00
  • 849300bc73 Neater introspection methods on BaseMetric so that subclasses don't need to touch self.keys directly Paul "LeoNerd" Evans 2015-03-04 17:53:51 +00:00
  • 8664599af7 Rename CacheCounterMetric to just CacheMetric; add a CallbackMetric component to give the size of the cache Paul "LeoNerd" Evans 2015-03-04 17:34:23 +00:00
  • e02cc249da Ensure that exceptions while rendering individual metrics don't stop others from being rendered anyway - especially useful for CallbackMetric Paul "LeoNerd" Evans 2015-03-04 17:13:09 +00:00
  • 59c448f074 Add a scalar gauge metric on the size of the presence user cachemap Paul "LeoNerd" Evans 2015-03-04 16:50:23 +00:00
  • d8caa5454d Initial attempt at a scalar callback-based metric to give instantaneous snapshot gauges Paul "LeoNerd" Evans 2015-03-04 16:46:44 +00:00
  • b0cdf097f4 Sprinkle some CacheCounterMetrics around the synapse.storage layer Paul "LeoNerd" Evans 2015-03-04 16:04:46 +00:00
  • ce8b5769f7 Create the concept of a cachecounter metric; generating two counters specific to caches Paul "LeoNerd" Evans 2015-03-04 15:47:23 +00:00
  • 7d72e44eb9 Add vector counters to HTTP clients and servers; count the requests by method and responses by method and response code Paul "LeoNerd" Evans 2015-02-24 19:51:21 +00:00
  • c53ec53d80 Pull out all uses of the underlying HTTP user agent .request() method into a single wrapper function, to make adding metrics easier Paul "LeoNerd" Evans 2015-02-24 19:05:20 +00:00
  • 9470412316 Initial attempt at sprinkling some @metrics.counted decorations around the federation code Paul "LeoNerd" Evans 2015-02-24 18:10:44 +00:00
  • a594087f06 Have the MetricsResource actually render metric counters Paul "LeoNerd" Evans 2015-02-24 18:04:01 +00:00
  • 74bc42cfdd An initial implementation of a 'metrics' instance, similar to a 'logger' for keeping counter stats on method calls Paul "LeoNerd" Evans 2015-02-24 18:03:39 +00:00
  • 120b689284 Delete pointless (and unreachable) __init__ method from FederationClient Paul "LeoNerd" Evans 2015-02-24 17:20:14 +00:00
  • e7420a3bef Initial tiny attempt at (vectorable) counter metrics Paul "LeoNerd" Evans 2015-02-24 16:58:26 +00:00
  • e07fc62833 A trivial 'hello world'-style resource on /_synapse/metrics, with optional commandline flag Paul "LeoNerd" Evans 2015-02-24 15:49:14 +00:00
  • 5b6e11d560 Commandline option to enable metrics system Paul "LeoNerd" Evans 2015-02-24 14:30:14 +00:00
  • 211c14c391 No need to explicitly pass 'web_client' in to create_resource_tree as it can be found via config Paul "LeoNerd" Evans 2015-02-24 14:23:50 +00:00
  • ad5701f50f Expose 'config' as a real HomeServer dependency key Paul "LeoNerd" Evans 2015-02-24 14:23:26 +00:00
  • c92fdf88a3 Log the matching push rule. David Baker 2015-03-11 22:17:31 +00:00
  • d33a3b91c3 Merge pull request #107 from matrix-org/add_desc_to_storage_execute Paul Evans 2015-03-11 17:55:31 +00:00
  • a7a28f85ae Appease pep8 Paul "LeoNerd" Evans 2015-03-11 17:32:43 +00:00
  • 59a5f012cc Also give _execute() a description Paul "LeoNerd" Evans 2015-03-11 17:19:17 +00:00
  • 099e4b88d8 Add a description to storage layer's _execute_and_decode() Paul "LeoNerd" Evans 2015-03-11 17:08:57 +00:00
  • cdb2e045ee Again, underscore, not hyphen David Baker 2015-03-11 14:22:35 +00:00
  • 465354ffde 'false' is not False David Baker 2015-03-11 11:24:50 +00:00
  • 83b1e7fb3c PEP8 blank lines David Baker 2015-03-11 10:01:17 +00:00
  • 04f8478aaa Add the master push rule for the break-my-push button. Allow server default rules to be disabled by default. David Baker 2015-03-10 17:26:25 +00:00
  • 8916acbc13 These aren't defined for redacted events so don't crash David Baker 2015-03-10 11:21:37 +00:00
  • abaf47bbb6 Fix bug in logging. Erik Johnston 2015-03-10 10:28:24 +00:00
  • 045afd6b61 in_thread takes no arguments Erik Johnston 2015-03-10 10:19:03 +00:00
  • 98b867f7b7 Fix bug in logging. Erik Johnston 2015-03-10 10:15:58 +00:00
  • db1fbc6c6f Fix remaining scheduler bugs. Add more informative logging. Kegan Dougal 2015-03-10 10:04:20 +00:00
  • e84fe3599b Merge pull request #105 from matrix-org/erikj-perf Erik Johnston 2015-03-10 10:02:26 +00:00
  • c37eceeb9e Split out the 'run' from 'setup' Erik Johnston 2015-03-10 09:58:33 +00:00
  • b8a6692657 Add documentation. When starting via twistd respect soft_file_limit config option. Erik Johnston 2015-03-10 09:39:42 +00:00
  • 7e0bba555c Remove unused import Kegan Dougal 2015-03-09 17:48:37 +00:00
  • 04c9751f24 Bug fixes whilst putting it all together Kegan Dougal 2015-03-09 17:45:41 +00:00
  • 019422ebba Merge pull request #101 from matrix-org/neaten-federation-servlets Erik Johnston 2015-03-09 17:39:06 +00:00
  • b98cd03193 Use event IDs instead of dumping event content in the txns table. Kegan Dougal 2015-03-09 17:25:20 +00:00
  • 9fccb0df08 Merge pull request #104 from matrix-org/get_joined_rooms_for_user Erik Johnston 2015-03-09 17:22:29 +00:00
  • 21fd84dcb8 Use seconds; start gluing in the AS scheduler into the AS handler. Kegan Dougal 2015-03-09 17:01:19 +00:00
  • 6d74e46621 Fix tests Erik Johnston 2015-03-09 17:01:11 +00:00
  • 8e28db5cc9 Change room handlers get_rooms_for_user to get_joined_rooms_for_user. This uses the a storage api that is cached. Erik Johnston 2015-03-09 16:43:09 +00:00
  • 0a60bbf4fa Finish appservice txn storage impl and tests. Kegan Dougal 2015-03-09 15:53:03 +00:00
  • a8dbb624b3 Optimize/coerce query to use correct indices initial_sync_perf Erik Johnston 2015-03-09 15:16:25 +00:00
  • d5174065af Merge branch 'release-v0.8.0' of github.com:matrix-org/synapse v0.8.0 Erik Johnston 2015-03-09 14:25:06 +00:00
  • 1ead1caa18 Implement create_appservice_txn with tests. Kegan Dougal 2015-03-09 13:54:20 +00:00
  • f31e65ca8b Merge branch 'develop' of github.com:matrix-org/synapse into erikj-perf Erik Johnston 2015-03-09 13:29:41 +00:00
  • 1c2dcf762a Partially implement txn store methods with tests. Kegan Dougal 2015-03-09 13:10:31 +00:00
  • 1df3ccf7ee D'oh: underscore, not hyphen David Baker 2015-03-09 12:39:56 +00:00
  • 118c883429 Call notifications should be override else they'll get clobbered by sender/room rules. David Baker 2015-03-06 19:36:12 +00:00
  • 406d32f8b5 Start implementing ApplicationServiceTransactionStore Kegan Dougal 2015-03-06 17:35:14 +00:00
  • 34ce2ca62f Merge branch 'develop' into application-services-txn-reliability Kegan Dougal 2015-03-06 17:28:49 +00:00
  • 4a6afa6abf Assign the AS ID from the database; replace old placeholder txn id. Kegan Dougal 2015-03-06 17:27:55 +00:00
  • 01c099d9ef Add appservice txns sql schema Kegan Dougal 2015-03-06 17:16:47 +00:00
  • 64345b7559 Upper bound the backoff. Kegan Dougal 2015-03-06 16:41:19 +00:00