Prabhu Marappan
32b76d0970
Added replacement option for path
2021-06-06 16:51:53 +05:30
Chris West (Faux)
99d8fc1ea9
fix: handle errors from prom-client
2021-02-19 08:32:48 +00:00
Konstantin Pogorelov
c44d157cfe
codestyle: fix indentation
2021-02-18 13:01:26 +01:00
Konstantin Pogorelov
a3c15b1645
support Promise response from .metrics() and .clusterMetrics(), see #71
2020-12-24 12:23:20 +01: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
yacine
52fdbf030f
ability to exclude incoming request from metrics
2020-11-28 21:42:52 +01:00
Aaron Smith
7654a4ec79
Allows for customizing promRegistry when creating prom bundle.
2019-09-19 11:10:43 -06:00
Konstantin Pogorelov
846ccfc641
Update src/index.js
...
Co-Authored-By: caraboides <caraboides@googlemail.com >
2019-03-14 12:47:08 +02:00
Christian Hennig
17fe5f4c70
pass maxAgeSeconds & ageBuckets to summary metrics
2019-03-14 10:18:55 +01: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
568c87216a
#16 remove unnecessary check for existance after new, break on error with 500
2018-08-25 12:42:53 +02:00
Adam Yost
1fff877787
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-24 23:36:23 +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
84f99cc49c
add urlValueParser option, update docs accordingly
2018-08-08 11:23:27 +02: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
Konstantin Pogorelov
d58b434f0a
fix codestyle
2017-09-23 11:35:30 +02:00
Eric Uldall
47fd051aba
added customLabels feature to main()
2017-09-22 15:21:32 -07:00
Jonathan Creamer
bbd62e34d6
Upgrade prom-client... again ( #9 )
...
* Update package.json
* Update call to Histogram
* Update package.json
* Update index.js
* Update index.js
2017-07-11 11:41:40 +02: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
Paulo Duarte
de83ac09a0
Remove if unnecessary
2017-03-27 17:35:13 -03:00
Paulo Duarte
5c6ed64a31
Fix lint error
2017-03-27 17:16:51 -03:00
Paulo Duarte
d8c6492163
Implement test
2017-03-27 12:03:53 -03:00
Paulo Duarte
48f8b992fd
Make normalizeStatusCode generic
2017-03-24 02:18:41 -03:00
Paulo Duarte
61e4343a8c
Implements group in status code metrics
2017-03-23 14:12:29 -03:00
Konstantin Pogorelov
40db5cacbd
Merge branch 'master' of github.com:jochen-schweizer/express-prom-bundle
...
Conflicts:
README.md
package.json
2017-01-19 16:54:58 +01:00
Konstantin Pogorelov
43334b923f
deprecate excludeRoutes, use originalUrl when matching own /metrics path, readme adjustments, version 2.1.0
2017-01-19 16:52:15 +01: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
Konstantin Pogorelov
190bf0be31
When trying to register a second instance with the same name, then just take the old one. Upgrade prom-client to 6.2.x. Bump 1.2.3
2016-12-06 10:10:14 +01:00
Konstantin Pogorelov
c918b44c2b
minor dep. upgrade, do not remove initial metrics if they match the requested prefix (i.e. recognized as own metrics), bump 1.2.2
2016-12-01 00:28:45 +01:00
Konstantin Pogorelov
b374e7f54c
fix includePath in combination with router
2016-11-28 11:28:05 +01:00
Konstantin Pogorelov
08d98b450c
upgrade prom-client to v6, add options: includeMethod, includePath, keepDefaultMetrics, bump 1.2.0
2016-11-26 21:00:58 +01:00
Konstantin Pogorelov
3675c516a9
upgrade jasme, cosmetics/whitespace fixes
2016-10-14 15:07:39 +02:00
Danijel Hrvacanin
66e1fca8dd
Add compatibility with Koa v1, fix tests and edit README
2016-10-14 14:32:39 +02:00
Konstantin Pogorelov
6cfd7523e7
fix typo
2016-10-03 13:46:40 +02:00
Mateusz Odelga
86e3dfdb33
Add possibility to manipulate /metrics endpoint registration e.g. to use another expressjs instance.
2016-10-03 13:12:58 +02:00
Konstantin Pogorelov
f69502c2ba
add excludeRoutes option
2016-08-17 14:29:26 +02:00
Konstantin Pogorelov
06727dfe5f
update deps, fix sumary factory method, add buckets param, extend unit tests, add coverage
2016-07-28 02:09:27 +02:00
Konstantin Pogorelov
f0ad7e563c
extend white/black-listing, update readme
2016-04-21 11:37:36 +02:00
Konstantin Pogorelov
2696988acf
rename duration histogram
2016-04-21 11:01:11 +02:00
Konstantin Pogorelov
7e9f42d9d0
fix code labels in histogram
2016-04-19 10:14:52 +02:00
Konstantin Pogorelov
5ead531a59
added whie-black-listing, http counter is a histogram now
2016-04-19 00:48:23 +02:00
Konstantin Pogorelov
3ae9394154
add unit test, fix dev dependencies, add Makefile
2016-04-18 17:34:37 +02:00