Skip to main content

entrenar/monitor/prometheus/
mod.rs

1//! Prometheus Metrics Export Module (MLOPS-006)
2//!
3//! Integration with standard observability stacks.
4//!
5//! # Toyota Way: (Andon)
6//!
7//! Visual alerting through Prometheus/Grafana dashboards.
8//!
9//! # Example
10//!
11//! ```ignore
12//! use entrenar::monitor::prometheus::PrometheusExporter;
13//!
14//! let exporter = PrometheusExporter::new("my-experiment", "run-1");
15//! exporter.record_epoch(1, 0.5, 0.001);
16//! let metrics = exporter.export();
17//! println!("{}", metrics);
18//! ```
19
20mod exporter;
21mod types;
22
23#[cfg(test)]
24mod tests;
25
26// Re-export all public types
27pub use exporter::PrometheusExporter;
28pub use types::{LabelSet, MetricDef, MetricType};