Created by: dependabot[bot]
Updates the requirements on axum-prometheus to permit the latest version.
Release notes
Sourced from axum-prometheus's releases.
0.3.0
- Routing patterns can be ignored, and grouped together when reporting to Prometheus. Added
PrometheusMetricLayerBuilderto easily customize these. #5- Endpoint label behavior can be altered with the new
EndpointLabelenum. #8- The metric names can be changed by setting some environmental variables at compile time. #6 (Thanks
@dylanwh.)
Changelog
Sourced from axum-prometheus's changelog.
0.3.0 - 2023-01-04
Added
Routing patterns can be ignored, and grouped together when reporting to Prometheus.
Endpoint label behavior can be altered with the new
EndpointLabelenum.Added a new builder
PrometheusMetricLayerBuilderto easily customize these.let (prometheus_layer, metric_handle) = PrometheusMetricLayerBuilder::new() // ignore reporting requests that match "/foo" or "/sensitive" .with_ignore_patterns(&["/foo", "/sensitive"]) // if the any of the second argument matches, report them at the `/bar` endpoint .with_group_patterns_as("/bar", &["/foo/:bar", "/foo/:bar/:baz"]) // use `axum::extract::MatchedPath`, and if that fails, use the exact requested URI .with_endpoint_label_type(EndpointLabel::MatchedPath) .with_default_metrics() .build_pair();A builder-example and an endpoint-type-example.
The metric names can be changed by setting some environmental variables at compile time. It is best to set these in the
config.toml(note this is not the same file asCargo.toml):[env] AXUM_HTTP_REQUESTS_TOTAL = "my_app_requests_total" AXUM_HTTP_REQUESTS_DURATION_SECONDS = "my_app_requests_duration_seconds" AXUM_HTTP_REQUESTS_PENDING = "my_app_requests_pending"0.2.0 - 2022-10-25
Added
- Compatibility with
axum-core = "0.3"and thusaxum = "0.6".0.1.0
First version.
Commits
-
16f3643fix: increase version -
af3e7c7Merge pull request #9 from Ptrskay3/release/0.3 -
3671e63release/0.3 -
9f518d1Merge pull request #8 from Ptrskay3/endpoint-types -
7f29dfbadd changelog -
86d92c8add option to customize endpoint reporting -
f6f3cfbFix typo -
b2e2c77Merge pull request #6 from dylanwh/master -
a24e7b3update doc strings for constants, with breadcrumb to the envs -
104bbf6mention metric name envs in the changelog - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)