Class OracleCloudMeterRegistry

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.OracleCloudMeterRegistry

public class OracleCloudMeterRegistry extends io.micrometer.core.instrument.step.StepMeterRegistry
StepMeterRegistry for Oracle Cloud Monitoring that produces aggregated data.
Since:
1.2
Author:
Pavol Gressa
  • 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
    Modifier and Type
    Field
    Description
    protected final OracleCloudConfig
     

    Fields inherited from class io.micrometer.core.instrument.MeterRegistry

    clock
  • Constructor Summary

    Constructors
    Constructor
    Description
    OracleCloudMeterRegistry(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use OracleCloudMeterRegistry(OracleCloudConfig, Clock, Provider, ThreadFactory) instead.
    OracleCloudMeterRegistry(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider, ThreadFactory threadFactory)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use OracleCloudMeterRegistry(OracleCloudConfig, Clock, Provider, ThreadFactory) instead.
    OracleCloudMeterRegistry(OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected TimeUnit
     
    protected List<com.oracle.bmc.monitoring.model.MetricDataDetails>
     
    protected void
     

    Methods inherited from class io.micrometer.core.instrument.step.StepMeterRegistry

    close, defaultHistogramConfig, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, newTimer, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • OracleCloudMeterRegistry

      public OracleCloudMeterRegistry(OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider)
      Parameters:
      oracleCloudConfig - Oracle Cloud Config
      clock - Clock
      monitoringIngestionClientProvider - Monitoring Ingestion Client Provider
    • OracleCloudMeterRegistry

      @Deprecated(forRemoval=true, since="4.3.0") public OracleCloudMeterRegistry(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use OracleCloudMeterRegistry(OracleCloudConfig, Clock, Provider, ThreadFactory) instead.
      Parameters:
      httpClientRegistry - Http Client Registry
      oracleCloudConfig - Oracle Cloud Config
      clock - Clock
      monitoringIngestionClientProvider - Monitoring Ingestion Client Provider
    • OracleCloudMeterRegistry

      @Deprecated(forRemoval=true, since="4.3.0") public OracleCloudMeterRegistry(io.micronaut.http.client.HttpClientRegistry<?> httpClientRegistry, OracleCloudConfig oracleCloudConfig, io.micrometer.core.instrument.Clock clock, jakarta.inject.Provider<MonitoringIngestionClient> monitoringIngestionClientProvider, ThreadFactory threadFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use OracleCloudMeterRegistry(OracleCloudConfig, Clock, Provider, ThreadFactory) instead.
      Parameters:
      httpClientRegistry - Http Client Registry
      oracleCloudConfig - Oracle Cloud Config
      clock - Clock
      monitoringIngestionClientProvider - Monitoring Ingestion Client Provider
      threadFactory - Thread Factory
  • Method Details

    • getMetricData

      protected List<com.oracle.bmc.monitoring.model.MetricDataDetails> getMetricData()
      Returns:
      list of all Meter data transformed into MetricDataDetails
    • getBaseTimeUnit

      protected TimeUnit getBaseTimeUnit()
      Specified by:
      getBaseTimeUnit in class io.micrometer.core.instrument.MeterRegistry
    • publish

      protected void publish()
      Specified by:
      publish in class io.micrometer.core.instrument.push.PushMeterRegistry