io.prometheus.metrics.config.ExporterHttpServerProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmx_prometheus_httpserver Show documentation
Show all versions of jmx_prometheus_httpserver Show documentation
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
package io.prometheus.metrics.config;
import java.util.Map;
/**
* Properties starting with io.prometheus.exporter.httpServer
*/
public class ExporterHttpServerProperties {
private static final String PORT = "port";
private final Integer port;
private ExporterHttpServerProperties(Integer port) {
this.port = port;
}
public Integer getPort() {
return port;
}
/**
* Note that this will remove entries from {@code properties}.
* This is because we want to know if there are unused properties remaining after all properties have been loaded.
*/
static ExporterHttpServerProperties load(String prefix, Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy