Struct openmetrics_parser::Exemplar [−][src]
pub struct Exemplar {
pub labels: HashMap<String, String>,
pub timestamp: Option<f64>,
pub id: f64,
}
Expand description
An OpenMetrics Exemplar (that is also valid in Prometheus) https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#exemplars Exemplars are references to data outside of the MetricSet. A common use case are IDs of program traces. Exemplars MUST consist of a LabelSet and a value, and MAY have a timestamp. They MAY each be different from the MetricPoints’ LabelSet and timestamp. The combined length of the label names and values of an Exemplar’s LabelSet MUST NOT exceed 128 UTF-8 characters. Other characters in the text rendering of an exemplar such as “,= are not included in this limit for implementation simplicity and for consistency between the text and proto formats.
Fields
labels: HashMap<String, String>
timestamp: Option<f64>
id: f64
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Exemplar
impl UnwindSafe for Exemplar
Blanket Implementations
Mutably borrows from an owned value. Read more