Class MicrometerRate

  • All Implemented Interfaces:
    org.apache.iotdb.metrics.type.IMetric, org.apache.iotdb.metrics.type.Rate

    public class MicrometerRate
    extends java.lang.Object
    implements org.apache.iotdb.metrics.type.Rate
    could not publish to other metrics system exclude jmx and csv, because micrometer assumes that other metrics system have the ability to calculate rate. Details is at https://github.com/micrometer-metrics/micrometer/issues/1935.

    Now, we only record a gauge for the rate record in micrometer, and we use dropwizard meter to calculate the meter.

    • Constructor Detail

      • MicrometerRate

        public MicrometerRate​(java.util.concurrent.atomic.AtomicLong atomicLong)
    • Method Detail

      • getCount

        public long getCount()
        Specified by:
        getCount in interface org.apache.iotdb.metrics.type.Rate
      • getOneMinuteRate

        public double getOneMinuteRate()
        Specified by:
        getOneMinuteRate in interface org.apache.iotdb.metrics.type.Rate
      • getMeanRate

        public double getMeanRate()
        Specified by:
        getMeanRate in interface org.apache.iotdb.metrics.type.Rate
      • getFiveMinuteRate

        public double getFiveMinuteRate()
        Specified by:
        getFiveMinuteRate in interface org.apache.iotdb.metrics.type.Rate
      • getFifteenMinuteRate

        public double getFifteenMinuteRate()
        Specified by:
        getFifteenMinuteRate in interface org.apache.iotdb.metrics.type.Rate
      • mark

        public void mark()
        Specified by:
        mark in interface org.apache.iotdb.metrics.type.Rate
      • mark

        public void mark​(long n)
        Specified by:
        mark in interface org.apache.iotdb.metrics.type.Rate