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

Tags are not returned when fetching metric values

    XMLWordPrintable

    Details

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

      Description

      When fetching a metric with tags, the tags are not returned in the response message. There's no difference whether the metric was created first or not.

      START: TEST TAGS
      CREATE
      http://localhost:8081/hawkular-metrics/3de797b4-aa11-4cad-8224-8a79d7966b36/metrics/numeric
      {
      "id": "test.numeric.single.tags.1",
      "tags":

      { "hostname": "" }

      }
      POST
      http://localhost:8081/hawkular-metrics/3de797b4-aa11-4cad-8224-8a79d7966b36/metrics/numeric/data
      [
      {
      "data": [
      {
      "timestamp": 1428490907259,
      "value": 1.2345,
      "tags":

      { "hostname": "localhost" }

      }
      ],
      "id": "test.numeric.single.tags.1"
      }
      ]
      GET
      http://localhost:8081/hawkular-metrics/3de797b4-aa11-4cad-8224-8a79d7966b36/metrics/numeric/test.numeric.single.tags.1/data
      [

      { "timestamp": 1428490907259, "value": 1.2345 }

      ]
      END: TEST TAGS

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                john.sanda John Sanda
                Reporter:
                burmanm Michael Burman
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: