⏰A Prometheus exporter for Hapi, express and Marble.js servers to automatically measure request timings 📊
7668337
]:
7668337
]:
7668337
]:
7668337
]:
7668337
]:
#1210 7668337
Thanks @tdeekens! - Replace @sematext/gc-stats
with prometheus-gc-stats
.
The latter is better supported and doesn't require any userland install. The module however does not allow to full configuration of metric names. Hence the metric names have changed:
We now expose:
7668337
]:
7668337
]:
#1210 7668337
Thanks @tdeekens! - Replace @sematext/gc-stats
with prometheus-gc-stats
.
The latter is better supported and doesn't require any userland install. The module however does not allow to full configuration of metric names. Hence the metric names have changed:
We now expose:
#1175 2da8d99
Thanks @tdeekens! - Remove support for Node.js v18
We didn't adjust functionality to remove support but changed the engines
requirement.
Updated dependencies [2da8d99
, 0d8acff
]:
6bc4617
]:
6bc4617
]:
6bc4617
]:
6bc4617
]:
6bc4617
]:
6bc4617
]:
6bc4617
]:
[!IMPORTANT]
All@promster/*
packages are released using a fixed (synchronized) version across all of its packages. As a result you may see a higher version bump when updating than needed. For instance@promster/types
will jump from v5 to v12 while it's actually one major increment with the changes listed below.
660af55
, eab1f5c
]:
660af55
, eab1f5c
]:
660af55
, eab1f5c
]:
660af55
, eab1f5c
]:
660af55
, eab1f5c
]:
660af55
, eab1f5c
]:
660af55
, eab1f5c
]:
#1099 c3fbd90
Thanks @tdeekens! - Allow customization of individual metrics.
Previously we only allowed customizing a all histogram and percentile based metrics once with a buckets
and percentiles
option. This is too restrictive in cases in which you need to customize metrics individually.
As a result you can now pass metricBuckets
and metricPercentiles
as options. Both of which are a Record<string, number[]>
. The key needs to match a an existing metric type.
This is a more elaborate example:
const middleware = createMiddleware({
app,
options: {
metricBuckets: {
httpRequestContentLengthInBytes: [
100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
10000000,
],
httpRequestDurationInSeconds: [
0.05, 0.1, 0.3, 0.5, 0.8, 1, 1.5, 2, 3, 10,
],
},
metricPercentiles: {
httpRequestDurationPerPercentileInSeconds: [0.5, 0.9, 0.95, 0.98, 0.99],
httpResponseContentLengthInBytes: [
100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
10000000,
],
},
},
});
If you used buckets
or percentiles
before you migrate the values into the structure above.