Uses of Class
io.prometheus.metrics.exporter.pushgateway.PushGateway.Builder
-
Uses of PushGateway.Builder in io.prometheus.metrics.exporter.pushgateway
Methods in io.prometheus.metrics.exporter.pushgateway that return PushGateway.BuilderModifier 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.BuilderPushGateway.builder()static PushGateway.BuilderPushGateway.builder(io.prometheus.metrics.config.PrometheusProperties config) ThePrometheusPropertieswill 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.Thejoblabel to be used when pushing metrics.PushGateway.Builder.registry(io.prometheus.metrics.model.registry.PrometheusRegistry registry) Push metrics from this registry instead ofPrometheusRegistry.defaultRegistry.Specify if metrics should be pushed using HTTP or HTTPS.