Module prometheus

Module prometheus 

Source
Expand description

Prometheus metrics exporter

This module provides integration with Prometheus for production monitoring. It exports storage metrics in Prometheus text format for scraping.

§Example

use ipfrs_storage::{PrometheusExporter, StorageMetrics};

let metrics = StorageMetrics::default();
let exporter = PrometheusExporter::new("ipfrs_storage".to_string());
let prometheus_text = exporter.export(&metrics);
println!("{}", prometheus_text);

Structs§

PrometheusExporter
Prometheus metrics exporter
PrometheusExporterBuilder
Builder for creating a Prometheus exporter with multiple configurations