guiqi695/moon-prometheus-sdk/registry does not have a README file
pub struct CollectorAdapter {
descriptors : Array[Descriptor]
collect : () -> Result[Array[FamilySnapshot], CollectorError]
}fn CollectorAdapter::new(descriptors : Array[Descriptor], collect : () -> Result[Array[FamilySnapshot], CollectorError]) -> CollectorAdapterpub(all) struct FamilySnapshot {
name : String
help : String
unit : String?
family_type : FamilyType
scalar_samples : Array[ScalarSampleSnapshot]
histogram_samples : Array[HistogramSampleSnapshot]
} derive(Eq, Debug)fn FamilySnapshot::histogram(name : String, help : String, samples : Array[HistogramSampleSnapshot], unit : String?) -> FamilySnapshotfn FamilySnapshot::scalar(name : String, help : String, family_type : FamilyType, samples : Array[ScalarSampleSnapshot], unit : String?) -> FamilySnapshotpub(all) struct HistogramSampleSnapshot {
labels : Array[Label]
value : HistogramSnapshot
} derive(Eq, Debug)fn Registry::register_collector(self : Registry, collector : CollectorAdapter) -> Registration raise RegistryErrorfn Registry::register_counter_vec_with_handle(self : Registry, vector : CounterVec) -> Registration raise RegistryErrorfn Registry::register_counter_with_handle(self : Registry, metric : Counter) -> Registration raise RegistryErrorfn Registry::register_gauge_vec_with_handle(self : Registry, vector : GaugeVec) -> Registration raise RegistryErrorfn Registry::register_gauge_with_handle(self : Registry, metric : Gauge) -> Registration raise RegistryErrorfn Registry::register_histogram_vec(self : Registry, vector : HistogramVec) -> Unit raise RegistryErrorfn Registry::register_histogram_vec_with_handle(self : Registry, vector : HistogramVec) -> Registration raise RegistryErrorfn Registry::register_histogram_with_handle(self : Registry, metric : Histogram) -> Registration raise RegistryErrorInstall
Download zipPrometheus metrics model, registry, and OpenMetrics text exporter for MoonBit.