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

Add endpoint for fetching bucket data points from multiple metrics for gauges and counters

    Details

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

      Description

      This is related to HWKMETRICS-393 and HWKMETRICS-423. The use cases for query for data often involves fetching data points for multiple metrics. This includes fetching bucketed data points. We want to minimize the number of requests clients have to make to fetch data. Initially this will support gauges and counters, but we may want to extend it to other types as well.

      The new endpoint will be POST /hawkular/metrics/metrics/stats/query and the request body will be:

      {
        // At lest one metric id must be specified. If not ids are specified, it will be considered a 
        // bad request because we are not going to query for all metrics.
        "metrics": {
          "gauge":          // array of ids
          "counter":        // array of ids
        } 
        "start":             // start timestamp (optional)
        "end":              // end timestamp (optional)
        "order":            // sort order (optional)
        "limit":              // limit number of data points for each metric (optional)
        "buckets":        // total number of buckets (optional)
        "bucketDuration":   // bucket duration (optional)
        "percentiles":   // list of percentiles to calculate
        "tags":             // list of tag filters (optional)     
      } 
      

      I need to put out this this is my initial thinking which is likely to change once I start looking at this more closely.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                john.sanda John Sanda
                Reporter:
                john.sanda John Sanda
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: