Struct prometheus_client::metrics::info::Info
source · pub struct Info<S>(_);
Expand description
Open Metrics Info
metric “to expose textual information which SHOULD NOT
change during process lifetime”.
let _info = Info::new(vec![("os", "GNU/linux")]);
Implementations§
Trait Implementations§
source§impl<S> EncodeMetric for Info<S>where
S: Clone + Hash + Eq + EncodeLabelSet,
impl<S> EncodeMetric for Info<S>where
S: Clone + Hash + Eq + EncodeLabelSet,
source§fn encode(&self, encoder: MetricEncoder<'_, '_>) -> Result<(), Error>
fn encode(&self, encoder: MetricEncoder<'_, '_>) -> Result<(), Error>
Encode the given instance in the OpenMetrics text encoding.
source§fn metric_type(&self) -> MetricType
fn metric_type(&self) -> MetricType
The OpenMetrics metric type of the instance.
source§impl<S> TypedMetric for Info<S>
impl<S> TypedMetric for Info<S>
source§const TYPE: MetricType = MetricType::Info
const TYPE: MetricType = MetricType::Info
The OpenMetrics metric type.