perf: MeterProvider with Prometheus scrape endpoint #205
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement
src/perf/_meter.pyfor metrics collection.Metrics
stack_pipeline_duration_seconds{pipeline}— histogramstack_step_duration_seconds{pipeline,step}— histogramstack_step_rows_out{pipeline,step}— gaugestack_step_memory_delta_mb{pipeline,step}— gaugestack_cache_hits_total{pipeline}— counterstack_cache_misses_total{pipeline}— counterstack_system_rss_mb{service}— gaugestack_system_cpu_percent{service}— gaugeTasks
MeterProvidersetup with OTLP gRPC exporter/metricsendpoint viaopentelemetry-exporter-prometheus(scrape target)Complete.
_meter.pywith MockMeter + MeterProvider was built in #203. Added 5 tests intest_meter.py:Note: OTel 1.40 uses set-once global provider — tests use provider.get_meter() directly to avoid global mutation conflicts.
✅ 5/5 passed, lint clean.