Package org.mockserver.metrics


package org.mockserver.metrics
  • Class
    Description
     
    Exposes 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.Name gauges 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-Write WriteRequest protobuf — v1 or v2 per mockserver.prometheusRemoteWriteProtocolVersion (see PrometheusRemoteWriteExporter.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).