Package io.micrometer.newrelic
Interface NewRelicConfig
-
- All Superinterfaces:
io.micrometer.core.instrument.config.MeterRegistryConfig,io.micrometer.core.instrument.push.PushRegistryConfig,io.micrometer.core.instrument.step.StepRegistryConfig
public interface NewRelicConfig extends io.micrometer.core.instrument.step.StepRegistryConfigConfiguration forNewRelicMeterRegistry.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringaccountId()default java.lang.StringapiKey()default java.lang.StringeventType()This configuration property will only be used ifmeterNameEventTypeEnabled()isfalse.default booleanmeterNameEventTypeEnabled()When this isfalse, the New Relic eventType value will be set toeventType().default java.lang.Stringprefix()default java.lang.Stringuri()
-
-
-
Method Detail
-
prefix
default java.lang.String prefix()
- Specified by:
prefixin interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
-
meterNameEventTypeEnabled
default boolean meterNameEventTypeEnabled()
When this isfalse, the New Relic eventType value will be set toeventType(). Otherwise, the meter name will be used. Defaults tofalse.- Returns:
- whether to use meter names as the New Relic eventType value
-
eventType
default java.lang.String eventType()
This configuration property will only be used ifmeterNameEventTypeEnabled()isfalse. Default value isMicrometerSample.- Returns:
- static eventType value to send to New Relic for all metrics.
-
apiKey
default java.lang.String apiKey()
-
accountId
default java.lang.String accountId()
-
uri
default java.lang.String uri()
- Returns:
- The URI for the New Relic insights API. The default is
https://insights-collector.newrelic.com. If you need to pass through a proxy, you can change this value.
-
-