| Modifier and Type | Method and Description |
|---|---|
HawkularReporterBuilder |
HawkularReporterBuilder.addGlobalTag(String key,
String value)
Set a global tag.
|
HawkularReporterBuilder |
HawkularReporterBuilder.addHeader(String key,
String value)
Add a custom header to Hawkular HTTP connections
|
HawkularReporterBuilder |
HawkularReporterBuilder.addMetricTag(String metric,
String key,
String value)
Set a tag on a given metric name
|
HawkularReporterBuilder |
HawkularReporterBuilder.addRegexTag(Pattern pattern,
String key,
String value)
Set a tag on metrics matching this regex
|
HawkularReporterBuilder |
HawkularReporterBuilder.basicAuth(String username,
String password)
Set username and password for basic HTTP authentication
|
HawkularReporterBuilder |
HawkularReporterBuilder.bearerToken(String token)
Set the bearer token for the Authorization header in Hawkular HTTP connections.
|
static HawkularReporterBuilder |
HawkularReporter.builder(com.codahale.metrics.MetricRegistry registry,
String tenant)
Create a new builder for an
HawkularReporter |
HawkularReporterBuilder |
HawkularReporterBuilder.convertDurationsTo(TimeUnit durationUnit)
Set dropwizard duration conversion
|
HawkularReporterBuilder |
HawkularReporterBuilder.convertRatesTo(TimeUnit rateUnit)
Set dropwizard rates conversion
|
HawkularReporterBuilder |
HawkularReporterBuilder.disableTagComposition()
Disable auto-tagging composed metrics.
|
HawkularReporterBuilder |
HawkularReporterBuilder.failoverCacheDuration(long milliseconds)
Set the failover cache duration (in milliseconds)
This cache is used to store post attempts in memory when the hawkular server cannot be reached Default duration is 10 minutes |
HawkularReporterBuilder |
HawkularReporterBuilder.failoverCacheDurationInHours(long hours)
Set the failover cache duration, in hours
This cache is used to store post attempts in memory when the hawkular server cannot be reached Default duration is 10 minutes |
HawkularReporterBuilder |
HawkularReporterBuilder.failoverCacheDurationInMinutes(long minutes)
Set the failover cache duration, in minutes
This cache is used to store post attempts in memory when the hawkular server cannot be reached Default duration is 10 minutes |
HawkularReporterBuilder |
HawkularReporterBuilder.failoverCacheMaxSize(int reqs)
Set the failover cache maximum size, in number of requests
This cache is used to store post attempts in memory when the hawkular server cannot be reached By default this parameter is unset, which means there's no maximum |
HawkularReporterBuilder |
HawkularReporterBuilder.filter(com.codahale.metrics.MetricFilter filter)
Configure a special MetricFilter, which defines what metrics are reported
|
HawkularReporterBuilder |
HawkularReporterBuilder.globalTags(Map<String,String> tags)
Set all global tags at once.
|
HawkularReporterBuilder |
HawkularReporterBuilder.metricComposition(Map<String,Collection<String>> conversions)
Set all metrics composition at once.
|
HawkularReporterBuilder |
HawkularReporterBuilder.perMetricTags(Map<String,Map<String,String>> tags)
Set all per-metric tags at once.
|
HawkularReporterBuilder |
HawkularReporterBuilder.prefixedWith(String prefix)
Configure a prefix for each metric name.
|
HawkularReporterBuilder |
HawkularReporterBuilder.setMetricComposition(String metric,
Collection<String> parts)
Set composing parts for a given metric name
|
HawkularReporterBuilder |
HawkularReporterBuilder.setRegexMetricComposition(Pattern pattern,
Collection<String> parts)
Set composing parts for metrics matching this regex
|
HawkularReporterBuilder |
HawkularReporterBuilder.uri(String uri)
Set the URI for the Hawkular connection.
|
HawkularReporterBuilder |
HawkularReporterBuilder.useHttpClient(Function<String,HawkularHttpClient> httpClientProvider)
Use a custom
HawkularHttpClient |
HawkularReporterBuilder |
HawkularReporterBuilder.withNullableConfig(HawkularReporterConfig config)
This is a shortcut function to use with automatically populated pojos such as coming from yaml config
|
Copyright © 2014–2018 Red Hat, Inc.. All rights reserved.