Package org.mockserver.metrics
package org.mockserver.metrics
-
ClassDescriptionExposes JVM runtime metrics (heap / non-heap memory, threads, GC) as Prometheus gauges so the dashboard Metrics view and Grafana can chart MockServer's process health.Small static helpers for deriving low-cardinality metric label values from load-scenario traffic.Composite key (scenario + run_id) for the load gauge readers.Optional exporter that publishes MockServer's explicitly-defined metrics (the same
Metrics.Namegauges exposed for Prometheus) via OpenTelemetry OTLP.Optional push exporter that, on a fixed interval, snapshots the same Prometheus metrics served at/mockserver/metrics, encodes them as a Prometheus Remote-WriteWriteRequestprotobuf — v1 or v2 permockserver.prometheusRemoteWriteProtocolVersion(seePrometheusRemoteWriteExporter.selectEncoder(String)) — snappy-compresses it (raw block format), and HTTP POSTs it to a configured remote-write endpoint (Prometheus--web.enable-remote-write-receiver, Grafana Mimir, New Relic, VictoriaMetrics, Thanos Receive).