Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-452

Metric Data API Parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • None

      It seems that Gauges and Availability metrics require different path parameters to retrieve data. Gauges data requires Metric ID and Availability data requires Resource ID. Take a look at the example below.

      # Gauges
      
      ## Metric ID as the path parameter. Response is a correct set of data.
      http --auth USER:PASS GET http://demo.hawkular.org/hawkular/metrics/gauges/a3ca17295646a583974e9f1c01737028.status.duration/data "Hawkular-Tenant":"2b0473d5-cd4e-4f6a-b22f-fe760187650a"
      
      ## Resource ID as the path parameter. Response is the 204 code.
      http --auth USER:PASS GET http://demo.hawkular.org/hawkular/metrics/gauges/a3ca17295646a583974e9f1c01737028/data "Hawkular-Tenant":"2b0473d5-cd4e-4f6a-b22f-fe760187650a"
      
      # Availability
      
      ## Metric ID as the path parameter. Response is the 204 code.
      http --auth USER:PASS GET http://demo.hawkular.org/hawkular/metrics/availability/a3ca17295646a583974e9f1c01737028.status.code/data "Hawkular-Tenant":"2b0473d5-cd4e-4f6a-b22f-fe760187650a"
      
      ## Resource ID as the path parameter. Response is a correct set of data.
      http --auth USER:PASS GET http://demo.hawkular.org/hawkular/metrics/availability/a3ca17295646a583974e9f1c01737028/data "Hawkular-Tenant":"2b0473d5-cd4e-4f6a-b22f-fe760187650a"
      

      This issue is either documentation or implementation error.

      It partially affects Console UI as well. Chart refreshing passes Resource ID, but the refreshing method declares required Metric ID.

            Unassigned Unassigned
            artur.dryomov Artur Dryomov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: