Skip to main content

Module prometheus

Module prometheus 

Source
Expand description

Prometheus Metrics Exporter (PMAT-041)

Native Prometheus /metrics endpoint for monitoring integration.

§Features

  • Gauge, Counter, and Histogram metric types
  • Label support with cardinality limits
  • Prometheus text format (v0.0.4) compliance
  • HTTP endpoint export

§Falsification Criteria (F1331-F1340)

See tests/prometheus_f1331.rs for falsification tests.

Structs§

CounterValue
Counter metric value
GaugeValue
Gauge metric value
HistogramBuckets
Histogram buckets
HistogramValue
Histogram metric value
Labels
Metric labels
MetricDef
Single metric definition
MetricsRegistry
Prometheus metrics registry

Enums§

MetricType
Metric type

Constants§

DEFAULT_BUCKETS
Default histogram buckets
DEFAULT_MAX_LABELS
Default max labels per metric

Functions§

escape_label_value
Escape label value for Prometheus format
validate_metric_name
Validate metric name (snake_case, alphanumeric + underscores)