Class OracleCloudRawMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.push.PushMeterRegistry
io.micrometer.core.instrument.step.StepMeterRegistry
io.micronaut.oraclecloud.monitoring.micrometer.OracleCloudRawMeterRegistry
public class OracleCloudRawMeterRegistry
extends io.micrometer.core.instrument.step.StepMeterRegistry
StepMeterRegistry
for Oracle Cloud Monitoring that produces raw data.- Since:
- 3.6
- Author:
- Nemanja Mikic
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.MeterRegistry.Config, io.micrometer.core.instrument.MeterRegistry.More
-
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock
-
Constructor Summary
ConstructorDescriptionOracleCloudRawMeterRegistry
(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider) OracleCloudRawMeterRegistry
(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider, ThreadFactory threadFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeUnit
protected List<com.oracle.bmc.monitoring.model.MetricDataDetails>
io.micrometer.core.instrument.Counter
newCounter
(io.micrometer.core.instrument.Meter.Id id) io.micrometer.core.instrument.DistributionSummary
newDistributionSummary
(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionStatisticConfig, double scale) io.micrometer.core.instrument.Timer
newTimer
(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionStatisticConfig, io.micrometer.core.instrument.distribution.pause.PauseDetector pauseDetector) protected void
publish()
Methods inherited from class io.micrometer.core.instrument.step.StepMeterRegistry
close, defaultHistogramConfig, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, start, stop
Methods inherited from class io.micrometer.core.instrument.push.PushMeterRegistry
getLastScheduledPublishStartTime, isPublishing, start, startMessage, waitForInProgressScheduledPublish
Methods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newLongTaskTimer, newTimeGauge, remove, remove, removeByPreFilterId, summary, summary, timer, timer
-
Field Details
-
oracleCloudConfig
-
-
Constructor Details
-
OracleCloudRawMeterRegistry
public OracleCloudRawMeterRegistry(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider) -
OracleCloudRawMeterRegistry
public OracleCloudRawMeterRegistry(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider, ThreadFactory threadFactory)
-
-
Method Details
-
newTimer
public io.micrometer.core.instrument.Timer newTimer(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionStatisticConfig, io.micrometer.core.instrument.distribution.pause.PauseDetector pauseDetector) - Overrides:
newTimer
in classio.micrometer.core.instrument.step.StepMeterRegistry
- Parameters:
id
- The id that uniquely identifies the timer.distributionStatisticConfig
- Configuration for published distribution statistics.pauseDetector
- The pause detector to use for coordinated omission compensation.- Returns:
-
newCounter
public io.micrometer.core.instrument.Counter newCounter(io.micrometer.core.instrument.Meter.Id id) - Overrides:
newCounter
in classio.micrometer.core.instrument.step.StepMeterRegistry
- Parameters:
id
- The id that uniquely identifies the counter.- Returns:
-
newDistributionSummary
public io.micrometer.core.instrument.DistributionSummary newDistributionSummary(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionStatisticConfig, double scale) - Overrides:
newDistributionSummary
in classio.micrometer.core.instrument.step.StepMeterRegistry
- Parameters:
id
- The id that uniquely identifies the distribution summary.distributionStatisticConfig
- Configuration for published distribution statistics.scale
- Multiply every recorded sample by this factor.- Returns:
-
getMetricData
-
getBaseTimeUnit
- Specified by:
getBaseTimeUnit
in classio.micrometer.core.instrument.MeterRegistry
-
publish
protected void publish()- Specified by:
publish
in classio.micrometer.core.instrument.push.PushMeterRegistry
-