Uploaded image for project: 'Hawkular Metrics'
  1. Hawkular Metrics
  2. HWKMETRICS-353

Stacked metrics not ordered in any way

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: REST
    • Labels:
      None

      Description

      When querying for stacked metrics, those are not ordered in any way (even passing order query parameter), so we get data with order like this:

      [
        {
          "start": 1455538991152, // => Mon Feb 15 2016 12:23:11 GMT+0000 (WET)
          "end": 1455539711152, // => Mon Feb 15 2016 12:35:11 GMT+0000 (WET)
          "min": 0.32413255654209017,
          "avg": 0.3242080729657151,
          "median": 0.32422103844701483,
          "max": 0.32427514417868475,
          "samples": 2,
          "empty": false
        },
        {
          "start": 1455564191152, // => Mon Feb 15 2016 19:23:11 GMT+0000 (WET)
          "end": 1455564911152, // => Mon Feb 15 2016 19:35:11 GMT+0000 (WET)
          "min": 0.3290252364226509,
          "avg": 0.3290976689489027,
          "median": 0.32911294126024915,
          "max": 0.32917034762775055,
          "samples": 2,
          "empty": false
        },
        {
          "start": 1455547631152, // => Mon Feb 15 2016 14:47:11 GMT+0000 (WET)
          "end": 1455548351152, // => Mon Feb 15 2016 14:59:11 GMT+0000 (WET)
          "min": 0.3258634188538191,
          "avg": 0.3259448790264587,
          "median": 0.32596080974109715,
          "max": 0.3260160863047902,
          "samples": 2,
          "empty": false
        },
        {
          "start": 1455572831152, // => Mon Feb 15 2016 21:47:11 GMT+0000 (WET)
          "end": 1455573551152, // => Mon Feb 15 2016 21:59:11 GMT+0000 (WET)
          "min": 0.3306156849614964,
          "avg": 0.3306798563668987,
          "median": 0.3306890926432109,
          "max": 0.3307267818514138,
          "samples": 2,
          "empty": false
        },
        {
          "start": 1455556271152, // => Mon Feb 15 2016 17:11:11 GMT+0000 (WET)
          "end": 1455556991152, // => Mon Feb 15 2016 17:23:11 GMT+0000 (WET)
          "min": 0.32756067282062024,
          "avg": 0.3276228271458477,
          "median": 0.32763887024888283,
          "max": 0.3276832546226664,
          "samples": 2,
          "empty": false
        },
      ...
      
      

      This can be observed in LOTE data, with the following query:

      curl -v -u jdoe:password 'http://livingontheedge.hawkular.org/hawkular/metrics/gauges/data?buckets=60&end=1455574271152&metrics=MI~R~%5Bc92d509a-77e4-4c1c-85af-8ed947ce9662%2Fplatform~%2FOPERATING_SYSTEM%3Dc92d509a-77e4-4c1c-85af-8ed947ce9662_OperatingSystem%2FPROCESSOR%3D0%5D~MT~CPU+Usage&metrics=MI~R~%5Bc92d509a-77e4-4c1c-85af-8ed947ce9662%2Fplatform~%2FOPERATING_SYSTEM%3Dc92d509a-77e4-4c1c-85af-8ed947ce9662_OperatingSystem%2FPROCESSOR%3D1%5D~MT~CPU+Usage&stacked=true&start=1455531071152' -H 'Hawkular-Persona: 28026b36-8fe4-4332-84c8-524e173a68bf'
      

      Full data returned by this query @ http://pastebin.com/Evs08zeU

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tsegismont Thomas Segismont
                Reporter:
                alexandrem Alexandre Mendonça
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: