Cargo Features

[dependencies]
axum-prometheus = { version = "0.6.1", default-features = false, features = ["prometheus", "push-gateway"] }
default = prometheus

The prometheus feature is set by default whenever axum-prometheus is added without default-features = false somewhere in the dependency tree.

prometheus default = metrics-exporter-prometheus

Affects builder::PrometheusMetricLayerBuilder, axum-prometheus::Handle, axum-prometheus::PrometheusMetricLayer

push-gateway

Enables push-gateway of metrics-exporter-prometheus ^0.13.0

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.

metrics-exporter-prometheus prometheus push-gateway?

Enables metrics-exporter-prometheus ^0.13.0