Cargo Features
[dependencies]
axum-prometheus = { version = "0.8.0", default-features = false, features = ["prometheus", "push-gateway", "http-listener"] }
- default = prometheus
-
The
prometheus
feature is set by default wheneveraxum-prometheus
is added without
somewhere in the dependency tree.default-features = false - prometheus default = metrics-exporter-prometheus
-
Affects
builder::PrometheusMetricLayerBuilder
,axum-prometheus::Handle
,axum-prometheus::PrometheusMetricLayer
… - push-gateway
-
Enables push-gateway of metrics-exporter-prometheus
- http-listener
-
Enables http-listener of metrics-exporter-prometheus
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.