Commit graph

195 commits

Author SHA1 Message Date
Eric Mc Sween
971a768c4e Install prettier and eslint 2020-09-11 15:59:33 -04:00
Brian Gough
c530422f1e update package version to 3.1.0 2020-09-04 15:52:05 +01:00
Brian Gough
8a030e8422 Merge pull request #32 from overleaf/jpa-compression
[misc] enable compression for the /metrics route
2020-09-04 15:35:28 +01:00
Jakob Ackermann
71ba4150fe [misc] enable compression for the /metrics route 2020-09-04 15:32:48 +01:00
Brian Gough
b6b65b9638 Merge pull request #39 from overleaf/jpa-res-headers-public-api
[http] use public node api for getting the response content-length
2020-09-04 14:52:20 +01:00
Brian Gough
a79bc553cc Merge pull request #38 from overleaf/jpa-fix-importing
[misc] fix module importing
2020-09-04 14:51:58 +01:00
Jakob Ackermann
6f4829e817 [misc] fix module importing 2020-08-17 14:43:08 +01:00
Jakob Ackermann
37fda043d4 [http] use public node api for getting the response content-length 2020-08-17 11:59:18 +01:00
Brian Gough
b2e661b408 Merge branch 'bg-use-scoped-package-name' 2020-08-07 10:19:50 +01:00
Brian Gough
dcee92579e Merge pull request #36 from overleaf/bg-update-dependencies
npm audit fix
2020-08-07 10:13:31 +01:00
Brian Gough
0d98e0d21e Merge pull request #35 from overleaf/bg-decaffeinate
decaffeinate
2020-08-07 10:13:11 +01:00
Brian Gough
919d101aa9 Merge pull request #34 from overleaf/bg-remove-statsd
remove statsd
2020-08-07 10:12:38 +01:00
Brian Gough
e5747fefd2 remove package-lock.json (not needed for library) 2020-08-06 14:52:07 +01:00
Brian Gough
5b39d49358 use scoped package name @overleaf/metrics 2020-08-05 11:27:56 +01:00
Brian Gough
d415ae0cbe remove gruntfile 2020-07-17 16:23:01 +01:00
Brian Gough
671c243025 npm audit fix 2020-07-17 16:19:44 +01:00
Brian Gough
a0f856cff2 fix tests 2020-07-17 16:17:18 +01:00
Brian Gough
747a80b545 decaffeinate 2020-07-17 16:01:58 +01:00
Brian Gough
e31a819636 remove statsd 2020-07-17 15:36:37 +01:00
Eric Mc Sween
bf636047a3 Merge pull request #33 from overleaf/em-swagger-fix
Log requests that don't have a route property
2020-07-06 08:37:26 -04:00
Eric Mc Sween
e197e4dc11 2.7.0 2020-07-06 08:20:02 -04:00
Eric Mc Sween
d69195eaa9 Log requests that don't have a route property
The v1 history service has its routes set up via swagger-tools, which
doesn't write a route property on the request. This prevents us to send
request metrics based on the route, but we can still log the request.
2020-07-03 16:38:29 -04:00
Jakob Ackermann
ea435c88ea Merge pull request #31 from overleaf/jpa-fix-unit-tests
[misc] fix unit tests
2020-04-01 16:58:29 +02:00
Jakob Ackermann
ea767920fc [misc] fix unit tests 2020-04-01 16:40:15 +02:00
Eric Mc Sween
e27e9df1eb Merge pull request #30 from overleaf/em-fix-timing-metrics
Version 2.6.2
2020-03-25 09:55:31 -04:00
Eric Mc Sween
8131c5ac91 2.6.2 2020-03-25 09:53:54 -04:00
Eric Mc Sween
8ab79dd1ce Merge pull request #29 from overleaf/em-fix-timing-metrics
Fix HTTP request timing metrics
2020-03-25 09:53:07 -04:00
Eric Mc Sween
ef7e3b0e7a Fix HTTP request timing metrics
The conversion between high resolution time and milliseconds was
incorrect.
2020-03-25 09:39:21 -04:00
Eric Mc Sween
3dc7e15914 Merge pull request #27 from overleaf/em-downgrade-request-logs
Downgrade all request logs to INFO
2020-03-20 07:48:43 -04:00
Eric Mc Sween
a17843f3bf 2.6.1 2020-03-20 07:47:05 -04:00
Eric Mc Sween
25448bfef4 Downgrade all request logs to INFO
Commit 9056143fe36f1347a1ff985ef8592a1de7d798dd added logic to log
requests with different error levels depending on the status code. The
intention was to make the 5xx and 4xx requests stand out in Stackdriver.
Unfortunately, this also creates a lot of noise in Sentry since we log
the errors separately from the requests.

This commit brings back the former behaviour of logging all requests at
the INFO level. We can revisit this if we integrate the strategy
implemented in filestore of logging once per request.
2020-03-18 08:41:11 -04:00
Eric Mc Sween
7aff2e6f90 Merge pull request #26 from overleaf/em-request-size
Send HTTP request size metric
2020-03-12 06:45:48 -04:00
Eric Mc Sween
62e82d7469 Send the status code with the HTTP request size metric 2020-03-12 06:24:46 -04:00
Eric Mc Sween
4a92be80ea Send HTTP request size metric
The metric is a "summary" called http_request_size_bytes.
2020-03-11 16:39:49 -04:00
Brian Gough
372485653e Merge pull request #25 from overleaf/bg-reduce-step-effects
avoid step effects in summary metrics
2020-03-11 10:16:25 +00:00
Brian Gough
03e81153db avoid step effects in summary metrics
reduce the window size from 10 minutes to 1 minute,  so that short
spikes do not cause a 10 minute long "table" graph.
2020-03-10 15:01:09 +00:00
Simon Detheridge
1fac5ec6d6 Merge pull request #24 from overleaf/spd-dont-overwrite-threadpool-setting
Don't set UV_THREADPOOL_SIZE if already set
2020-03-04 10:37:36 +00:00
Simon Detheridge
74c2afc12d Bump package version 2020-03-04 10:31:12 +00:00
Simon Detheridge
9a8cddbbb6 Don't set UV_THREADPOOL_SIZE if already set 2020-03-03 17:09:35 +00:00
Brian Gough
81f9260a0b Merge pull request #23 from overleaf/bg-fix-gauge-wrapper
fix gauge usage
2019-12-16 11:49:26 +00:00
Brian Gough
2273978e7b fix gauge usage 2019-12-16 11:42:10 +00:00
Brian Gough
38ad3c36f3 Merge pull request #22 from overleaf/bg-allow-options-for-count
allow options for count
2019-12-16 10:37:02 +00:00
Brian Gough
3a5374c6f9 increase minor version for backwards compatible addition 2019-12-16 10:22:50 +00:00
Brian Gough
93df87eff3 allow options for count 2019-12-16 10:18:30 +00:00
Simon Detheridge
53aa2490f5 Merge pull request #20 from overleaf/spd-metrics-ttl
Add mechanism to expire old prometheus metrics
2019-10-28 17:21:57 +00:00
Simon Detheridge
feecda8ea8 Use map instead of hash for metrics 2019-10-28 14:39:53 +00:00
Simon Detheridge
e0cf10a886 Fix typo, gague -> gauge 2019-10-28 12:34:04 +00:00
Eric Mc Sween
b5f5a62886 Merge pull request #21 from overleaf/em-stackdriver
Stackdriver logging
2019-10-28 08:28:44 -04:00
Eric Mc Sween
7b7b6d0793 2.3.0 2019-10-25 07:17:43 -04:00
Eric Mc Sween
166211b278 Stackdriver logging
When the environment variable STACKDRIVER_LOGGING is set to true, send
request logs in a format that Stackdriver knows how to interpret. Also,
set the log level accordint to the status code. 4xx responses are logged
as warnings and 5xx responses are logged as errors.
2019-10-24 22:05:12 -04:00