Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8624

In Cockpit, Dashboard metrics missing data, when multiple reporters logs metrics

    Details

      Description

      Given:

      • bootstrap > 4 engines
      • each engine connects to the same database
      • each engine logs metrics (with different reporter id)
      • there exists metrics for more than 24h

      When:
      Opening the dashboard in Cockpit to see the metrics for the last day

      Observed Behavior:
      Metrics show 0 at the start of the interval.

      Expected Behavior:
      Metrics show a consistent workload.

      Problem:
      The backend has a limitation, as it can only return 200 data points [1]. When Cockpit fetches metrics for the last day, then the resulting array contains 200 data points, but approximately only for the half of the day. The reason is that the data points are grouped by the reporters, so that the data points for the whole does not fit into the array of 200 data points.

      Possible Solution:
      MetricsQuery has an option to aggregate the values over the existing reporters, so that the resulting metrics are not grouped by the reporters.

      [1]: https://github.com/camunda/camunda-bpm-platform/blob/cde0619d21e84b785f246f48e08e2334bcc573fd/engine/src/main/java/org/camunda/bpm/engine/impl/metrics/MetricsQueryImpl.java#L32

        Issue Links

          Activity

          Hide
          roman.smirnov Smirnov Roman added a comment -

          Please note, this issue describes another scenario than in CAM-7082

          Show
          roman.smirnov Smirnov Roman added a comment - Please note, this issue describes another scenario than in CAM-7082

            People

            • Assignee:
              michael.schoettes Michael Schoettes
              Reporter:
              roman.smirnov Smirnov Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development