Releases: loshz/metrics_server
Releases · loshz/metrics_server
v0.15.0
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 withserver.serve_uri("/metrics");
v0.14.0
v0.13.0
v0.12.0
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
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
Changelog
https://crates.io/crates/metrics_server/0.10.1
Changes
- Fixes a bug in the URL pattern matching logic.
v0.10.0
Changelog
https://crates.io/crates/metrics_server/0.10.0
Changes
- Remove
drop
implementation in favour of newstop()
method that returns aResult<(), ServerError>
instead of panicking. - Upgrade Prometheus example to trap signals and free resources.
- Add more assertions to tests.
v0.9.0
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
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
Changelog
https://crates.io/crates/metrics_server/0.8.0
Breaking Changes
- The
https()
method is now conditionally included through the use of a newtls
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"] }