cbtop/prometheus/mod.rs
1//! Prometheus Metrics Exporter (PMAT-041)
2//!
3//! Native Prometheus `/metrics` endpoint for monitoring integration.
4//!
5//! # Features
6//!
7//! - Gauge, Counter, and Histogram metric types
8//! - Label support with cardinality limits
9//! - Prometheus text format (v0.0.4) compliance
10//! - HTTP endpoint export
11//!
12//! # Falsification Criteria (F1331-F1340)
13//!
14//! See `tests/prometheus_f1331.rs` for falsification tests.
15
16mod registry;
17mod types;
18
19pub use registry::MetricsRegistry;
20pub use types::{
21 escape_label_value, validate_metric_name, CounterValue, GaugeValue, HistogramBuckets,
22 HistogramValue, Labels, MetricDef, MetricType, DEFAULT_BUCKETS, DEFAULT_MAX_LABELS,
23};
24
25#[cfg(test)]
26mod tests;