Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32127

Datadog reporter fails when using histogram metric

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.4, 2021.46
    • Component/s: Datadog

      Description

      In Nuxeo, we use gauge, counter and timer metrics, the Nuxeo Datadog reporter is also trying to handle histogram but fails if the "sum" expansion is enable:

      java.lang.ArrayIndexOutOfBoundsException: Index 10 out of bounds for length 10
      	at org.nuxeo.runtime.metrics.reporter.patch.NuxeoDatadogReporter.reportHistogram(NuxeoDatadogReporter.java:205) ~[nuxeo-runtime-metrics-2021.43.7.jar:?]
      	at org.nuxeo.runtime.metrics.reporter.patch.NuxeoDatadogReporter.report(NuxeoDatadogReporter.java:130) ~[nuxeo-runtime-metrics-2021.43.7.jar:?]
      	at io.dropwizard.metrics5.ScheduledReporter.report(ScheduledReporter.java:237) ~[metrics-core-5.0.0-rc3.jar:5.0.0-rc3]
      

      This is because the expansion list is taken from the timer metric that includes a "sum" property which is not part of the histogram.

      When this is happening other metrics are not anymore reported.

       

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: