Package io.prometheus.metrics.config
Class ExporterHttpServerProperties
java.lang.Object
io.prometheus.metrics.config.ExporterHttpServerProperties
Properties starting with io.prometheus.exporter.http_server
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExporterHttpServerProperties(Integer port, boolean preferUncompressedResponse) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getPort()boolean(package private) static ExporterHttpServerPropertiesload(PropertySource propertySource) Note that this will remove entries frompropertySource.
-
Field Details
-
PORT
- See Also:
-
PREFER_UNCOMPRESSED_RESPONSE
- See Also:
-
PREFIX
- See Also:
-
port
-
preferUncompressedResponse
private final boolean preferUncompressedResponse
-
-
Constructor Details
-
ExporterHttpServerProperties
-
-
Method Details
-
getPort
-
isPreferUncompressedResponse
public boolean isPreferUncompressedResponse() -
load
static ExporterHttpServerProperties load(PropertySource propertySource) throws PrometheusPropertiesException Note that this will remove entries frompropertySource. This is because we want to know if there are unused properties remaining after all properties have been loaded.- Throws:
PrometheusPropertiesException
-
builder
-