Timm Stelzer
fd5ff1cfe0
feat: respect pruneAgedBuckets, update README
2024-01-06 11:31:26 +01:00
Konstantin Pogorelov
0ce44722a5
use collectDefaultMetrics.prefix for up metric
2024-01-06 10:48:57 +01:00
Konstantin Pogorelov
407ea4b0d7
fix unittest for prom-client 15
2024-01-06 10:26:33 +01:00
Henrik Karlsson
1171fb5be1
Combined bypass and bypassOnFinish into one option
2022-12-14 17:02:54 +01:00
Henrik Karlsson
ea9f34aa3e
Add new option bypassOnFinish, for when response is required in bypass callback
2022-12-09 17:45:27 +01:00
Konstantin Pogorelov
2d2b253567
minor codestyle fixes, turn async/await in metricsApp into a conventional promise
2022-06-18 12:23:59 +02:00
Asbjørn Dyhrberg Thegler
2293d1cd40
Remove exclusive test running
...
Silly me
2022-06-17 21:19:53 +02:00
Asbjørn Dyhrberg Thegler
1ee094eb04
Add jasmine test
2022-06-17 21:01:14 +02:00
Konstantin Pogorelov
62abb62772
suppress error logging by providing NODE_ENV=test, relates to #78
2021-02-19 12:42:27 +01:00
Chris West (Faux)
99d8fc1ea9
fix: handle errors from prom-client
2021-02-19 08:32:48 +00:00
Konstantin Pogorelov
0205d4cfc8
fix bypass test, minor change to docs, move bypass logic after serving the /metrics route, see MR #70
2020-11-29 15:47:28 +01:00
yacine
bffb4cf16e
changed wording + added doc + unit test
2020-11-29 15:13:01 +01:00
Sam Roberts
20c6a7de24
Update to prom-client v12, requiring Node >=10
...
v12 drops support for versions of Node.js that are no longer supported
(as-of January, 2020), and also removes the timeout option from
collectDefaultMetrics().
Remove 6 and 8 from Travis, and add 12 and 13 (so all the non-EOL versions
of Node.js are tested).
2020-03-06 16:39:47 -08:00
Konstantin Pogorelov
e68466d7af
experimental workaround for testing cluster on travis
2019-04-05 17:56:22 +02:00
Konstantin Pogorelov
c6d5964768
add metricPath and includeUp options, make whitelist/blacklist obsolete, simnplify code, update unit tests and code, add node10 to .travis.yml
2018-12-24 02:06:16 +01:00
Konstantin Pogorelov
e7d004f0cc
rename metricsType -> metricType, move corresponding readme block 2 paragraphs lower
2018-12-23 16:45:38 +01:00
Chen Li
0dd3116f23
Feature/add metrics type summary ( #24 )
...
* add metric type summary
* add tests for percentile option
* throw errors for unknown metricType
* set histogram as default metrics type
2018-12-23 16:36:47 +01:00
Konstantin Pogorelov
1cf8c86acb
Squashed commit of the following:
...
commit bc65dc45cb
Author: Konstantin Pogorelov <or@pluseq.com >
Date: Sat Aug 25 12:57:15 2018 +0200
#16 fix typo in docs
commit 2003e7743f
Author: Konstantin Pogorelov <or@pluseq.com >
Date: Sat Aug 25 12:44:24 2018 +0200
#16 fix unit test (cluster_metrics/metrics_cluster), cover the error branch
commit 568c87216a
Author: Konstantin Pogorelov <or@pluseq.com >
Date: Sat Aug 25 12:42:53 2018 +0200
#16 remove unnecessary check for existance after new, break on error with 500
commit 98be36244e
Author: Konstantin Pogorelov <or@pluseq.com >
Date: Sat Aug 25 12:40:15 2018 +0200
#16 make the cluster example runnable
2018-08-25 13:07:36 +02:00
Konstantin Pogorelov
3be8d53a27
fix newlines in index.spec.js
2018-08-25 12:58:24 +02:00
Adam Yost
02fcda4721
Add support for clusterMaster option re: #16 ( #17 )
...
* Add support for clusterMaster option re: #16
* Add Cluster instructions to README
* Use the approach recommended in PR
* use console.error for errors
* Update with new method signature
* add code coverage for new clusterMetrics middleware
2018-08-25 12:58:09 +02:00
Konstantin Pogorelov
5e0cd75673
add normalizePath option as tuple array, improve docs and advanced example, version to 4.1.0
2018-08-09 11:27:04 +02:00
Konstantin Pogorelov
4ee269faee
make test more specific
2018-01-23 16:58:49 +01:00
Konstantin Pogorelov
06f55c9ab8
add promClient option for smuggling collectDefaultMetrics, upgrade prom-client to ~10.2.2, version 3.3.0
2018-01-23 16:43:38 +01:00
Konstantin Pogorelov
b0928b1b94
make template name consistent with httpDurationMetricName, fix typo in variable name
2017-09-23 12:18:00 +02:00
Konstantin Pogorelov
a261ab76a3
split includeCustomLabels into customLabels and transformLabels
2017-09-23 12:03:23 +02:00
Eric Uldall
47fd051aba
added customLabels feature to main()
2017-09-22 15:21:32 -07:00
Konstantin Pogorelov
b8ba87009e
extend unittests, simplify API, update README, use npm5 and package-lock.json, add node7 to travis config
2017-06-04 16:31:26 +02:00
Konstantin Pogorelov
5b1517ca91
#7 upgrade dependencies, workaround for koa-connect, update docs
2017-05-31 15:27:08 +02:00
Konstantin Pogorelov
20eb668e36
export and make replaceable normalizePath(), fix/extend readme, version 2.0.2
2017-01-04 23:41:09 +01:00
Konstantin Pogorelov
b0aa05d42b
fixes, polishing, docs update, bump to 2.0.0
2016-12-11 20:22:55 +01:00
Konstantin Pogorelov
1e9300ebf3
niterim state for 2.0 development
2016-12-08 18:13:13 +01:00