Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:
      None

      Description

      If my understanding is correct, the metrics we provide are for every 60 seconds and all counters will be reset every 60 seconds. Current the MetricsSnapshotReporter seems missing this implementation. It sends out the metrics every 60 seconds but does not reset the counter value.

       registry.getGroup(group).foreach {
                case (name, metric) =>
                  metric.visit(new MetricsVisitor {
                    def counter(counter: Counter) = groupMsg.put(name, counter.getCount: java.lang.Long)
                    def gauge[T](gauge: Gauge[T]) = groupMsg.put(name, gauge.getValue.asInstanceOf[Object])
                  })
              }
      

        Attachments

        1. SAMZA-349.1.patch
          2 kB
          Yan Fang
        2. SAMZA-349.2.patch
          25 kB
          Yan Fang
        3. SAMZA-349.3.patch
          31 kB
          Yan Fang
        4. SAMZA-349.patch
          25 kB
          Yan Fang
        5. SAMZA-349.patch
          1.0 kB
          Yan Fang

          Issue Links

            Activity

              People

              • Assignee:
                closeuris Yan Fang
                Reporter:
                closeuris Yan Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: