Package io.prometheus.client.exporter
package io.prometheus.client.exporter
-
ClassDescriptionThis class delegates to either javax.xml.bind.DatatypeConverter (for Java < 8) or java.util.Base64 (Java 8+) to perform Base64 encoding of a String.Expose Prometheus metrics using a plain Java HttpServer.We keep the original constructors of
HTTPServer
for compatibility, but new configuration parameters likesampleNameFilter
must be configured using the Builder.Handles Metrics collections from the given registry.The MetricsServlet class provides a simple way of exposing the metrics values.Export metrics via the Prometheus Pushgateway.For convenience, an implementation of aSupplier<Predicate<String>>
that always returns the same sampleNameFilter.