Skip to content

Releases: loshz/metrics_server

v0.15.0

29 May 23:50
v0.15.0
6a493b8
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.15.0

Changes

  • Add more debug logs.
  • Simplify URI path parsing.

Breaking Changes

  • Server no longer checks for URI path case equality.
    • Previous versions would convert the request path to lowercase before comparison.
    • Current version no longer converts to lowercase, therefore likely to return a 404. E.g., Sending a /METRICS request to a server started with server.serve_uri("/metrics");

v0.14.0

12 May 01:18
v0.14.0
418481d
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.14.0

Changes

  • Bump MSRV to 1.63
  • Bump http to v1.1
  • Use time to in request debug logs.
  • Update dev dependency versions.
  • Update Prometheus example with logs.

v0.13.0

28 Aug 17:09
v0.13.0
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.13.0

Changes

  • Use http::Uri to parse URIs.
  • Update dev dependency versions.

Breaking Changes

  • Rename method serve_url() -> serve_uri().

v0.12.0

23 Feb 21:40
v0.12.0
17a882c
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.12.0

Changes

  • Update tiny_http to v0.12
  • Update prometheus-client to v0.19
  • Update docs/examples to use a string instead of a vec for better readability.
  • Minor code adjustments.

v0.11.0

03 Jan 12:37
v0.11.0
da87648
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.11.0

Changes

  • Add a new serve_url() method for exposing the metrics endpoint on a specific URL path.
  • Calls to server() do not take ownership of the Server and instead mutate it.

v0.10.1

27 Dec 17:23
v0.10.1
e204f98
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.10.1

Changes

  • Fixes a bug in the URL pattern matching logic.

v0.10.0

25 Sep 04:04
v0.10.0
6873b43
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.10.0

Changes

  • Remove drop implementation in favour of new stop() method that returns a Result<(), ServerError> instead of panicking.
  • Upgrade Prometheus example to trap signals and free resources.
  • Add more assertions to tests.

v0.9.0

20 Aug 21:49
v0.9.0
1f2db21
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.9.0

Changes

  • The new() method will no longer panic and will instead return a specific error.
  • Upgrade prometheus-client to v0.18

v0.8.1

12 Jun 00:20
v0.8.1
959d45c
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.8.1

Changes

  • The serve() method will no longer panic if the server has already been been started. Instead, it will return itself/no-op.

v0.8.0

08 Jun 21:47
v0.8.0
6db926a
Compare
Choose a tag to compare

Changelog

https://crates.io/crates/metrics_server/0.8.0

Breaking Changes

  • The https() method is now conditionally included through the use of a new tls feature flag. This is to keep dependencies at a minimum if only using HTTP functionality.

Examples

To enable TLS support, pass the optional feature flag:

[dependencies]
metrics_server = { version = "0.8", features = ["tls"] }