Package org.mockserver.metrics.remotewrite


package org.mockserver.metrics.remotewrite
  • Class
    Description
    Encodes a snapshot of Prometheus metrics into the body of a Prometheus remote-write request.
    Hand-encodes a MetricSnapshots into a Prometheus Remote-Write v1 WriteRequest protobuf, matching the Prometheus text-exposition naming so the pushed series line up exactly with what /mockserver/metrics serves.
    Hand-encodes a MetricSnapshots into a Prometheus Remote-Write 2.0 Request protobuf (package io.prometheus.write.v2), matching the Prometheus text-exposition naming so the pushed series line up exactly with what /mockserver/metrics serves.
    Snappy compression in the raw block format that the Prometheus remote-write protocol requires (NOT the framed/streaming format).