Uses of Class
io.prometheus.metrics.exporter.pushgateway.PushGateway.Builder
-
Uses of PushGateway.Builder in io.prometheus.metrics.exporter.pushgateway
Modifier and TypeMethodDescriptionAddress of the Pushgateway in formathost:port
.Username and password for HTTP basic auth when pushing to the Pushgateway.PushGateway.Builder.bearerToken
(String token) Bearer token authorization when pushing to the Pushgateway.static PushGateway.Builder
PushGateway.builder()
static PushGateway.Builder
PushGateway.builder
(PrometheusProperties config) ThePrometheusProperties
will be used to override what is set in thePushGateway.Builder
.PushGateway.Builder.connectionFactory
(HttpConnectionFactory connectionFactory) Custom connection factory.Default isFormat.PROMETHEUS_PROTOBUF
.PushGateway.Builder.groupingKey
(String name, String value) Grouping keys to be used when pushing/deleting metrics.PushGateway.Builder.instanceIpGroupingKey()
Convenience method for adding the current IP address as an "instance" label.Thejob
label to be used when pushing metrics.PushGateway.Builder.registry
(PrometheusRegistry registry) Push metrics from this registry instead ofPrometheusRegistry.defaultRegistry
.Specify if metrics should be pushed using HTTP or HTTPS.