Class ExporterPushgatewayProperties
java.lang.Object
io.prometheus.metrics.config.ExporterPushgatewayProperties
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final Stringprivate static final Stringprivate final Durationprivate static final Stringprivate final EscapingSchemeprivate final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final Durationprivate final Stringprivate static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExporterPushgatewayProperties(String address, String job, String scheme, EscapingScheme escapingScheme, Duration connectTimeout, Duration readTimeout) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Address of the Pushgateway in the formhost:port.Connection timeout for connections to the Pushgateway.Escaping scheme to be used when pushing metric data to the pushgateway.getJob()joblabel for metrics being pushed.Read timeout for connections to the Pushgateway.Scheme to be used when pushing metrics to the pushgateway.(package private) static ExporterPushgatewayPropertiesload(PropertySource propertySource) Note that this will remove entries frompropertySource.private static EscapingSchemeparseEscapingScheme(String scheme)
-
Field Details
-
ADDRESS
- See Also:
-
JOB
- See Also:
-
SCHEME
- See Also:
-
ESCAPING_SCHEME
- See Also:
-
READ_TIMEOUT
- See Also:
-
CONNECT_TIMEOUT
- See Also:
-
PREFIX
- See Also:
-
scheme
-
address
-
job
-
escapingScheme
-
connectTimeout
-
readTimeout
-
-
Constructor Details
-
ExporterPushgatewayProperties
-
-
Method Details
-
getAddress
Address of the Pushgateway in the formhost:port. Default islocalhost:9091 -
getJob
joblabel for metrics being pushed. Default is the name of the JAR file that is running. -
getScheme
Scheme to be used when pushing metrics to the pushgateway. Must be "http" or "https". Default is "http". -
getEscapingScheme
Escaping scheme to be used when pushing metric data to the pushgateway. -
getConnectTimeout
Connection timeout for connections to the Pushgateway. -
getReadTimeout
Read timeout for connections to the Pushgateway. -
load
static ExporterPushgatewayProperties 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
-
parseEscapingScheme
-
builder
-