Skip to content

Releases: sd2k/rocket_prometheus

v0.10.1

20 May 09:42
v0.10.1
3384c48
Compare
Choose a tag to compare

What's Changed

  • Add an optional request filter for PrometheusMetrics by @Eijebong in #23

New Contributors

Full Changelog: v0.10.0...v0.10.1

v0.10.0

20 Nov 07:28
v0.10.0
82cd9fc
Compare
Choose a tag to compare

This is the first release compatible with Rocket v0.5.0, and the first to make use of async.

What's Changed

New Contributors

Full Changelog: v0.9.0...v0.10.0

v0.9.0

15 Nov 09:43
v0.9.0
4ab1ebf
Compare
Choose a tag to compare

0.9.0 - 2021-10-17

Changed

  • Update prometheus requirement to 0.13.

v0.8.1

21 Jul 09:27
v0.8.1
6b894ff
Compare
Choose a tag to compare

[0.8.1] - 2021-07-21

Changed

  • The two Rocket related metrics (http_requests_total and http_requests_duration_seconds) are now stored inside a separate registry to additional metrics. This allows multiple PrometheusMetrics fairings to exist even when using the global prometheus::Registry, such as the one used for metrics created by the macros in the prometheus crate. Previously this would cause a panic because the two fairing instances would attempt to register identical metrics to the same registry, which is an error. The implication of this is that the registry returned by PrometheusMetrics::registry no longer contains the Rocket related metrics. In practice this is unlikely to be a problem, since metrics from both registries are returned by the fairing's handler as before.

v0.8.0

21 Jul 09:26
v0.8.0
961d274
Compare
Choose a tag to compare

[0.8.0] - 2021-07-10

Changed

  • Update prometheus requirement to 0.12.
  • Add version=0.0.4 parameter to Content-Type header when returning metrics at the /metrics URL, as specified by the Prometheus Exposition Formats specification.
  • Use Duration::as_secs_f64 instead of manually calculating nanoseconds when calculating request durations. This bumps the minimum supported Rust version to 1.38.0, which is unlikely to be a problem in practice, since Rocket still requires a nightly version of Rust.
  • Impl From<PrometheusMetrics> for Vec<Route> instead of Into<Vec<Route>> for PrometheusMetrics, since the former gives us the latter for free.
  • PrometheusMetrics::registry is now a const fn.
  • Add PrometheusMetrics::with_default_registry associated function, which creates a new PrometheusMetrics using the default global prometheus::Registry and will therefore expose metrics created by the various macros in the prometheus crate.

v0.7.0

02 Sep 09:21
e569e9c
Compare
Choose a tag to compare
Release version 0.7.0