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

New POST endpoints gauges/stats/query and counters/stats/query

    XMLWordPrintable

    Details

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

      Description

      Create a kind of duplication of the GET endpoints "gauges/stats" and "counters/stats".

      The reason is the same as the one explained here: https://issues.jboss.org/browse/HWKMETRICS-410 and which ended up in duplicating GET "gauges/raw" endpoint to POST "gauges/raw/query" in a similar way.

      Now I want to add features to the Grafana plugin with aggregated statistics, but I face the same limitation due to Grafana proxy transforming the metric ids in GET queries.

      Note also that other clients than Grafana could possibly face the same issue.

      On the rest api consistency POV, I don't think it's damageable to provide POST endpoints for queries, given thoses queries can be complex and handle many parameters. It could on the contrary be more suitable than a GET.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jotak Joel Takvorian
                Reporter:
                jotak Joel Takvorian
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: