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

Availability not reported/initialized for sites returning 3xx codes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • 1.0.0.Alpha5
    • None
    • None
    • None
    • Hide
      1. Add a site which returns a 3xx code (eg: http://www.redhat.com);
      2. Wait for the initial metrics to be gathered;
      3. Once the values show, check expand the "Last 24 Hours" section and observe that Availability is just showing a "%" value;
      4. Confirm the availability endpoint response in the Network panel of the browser console;
      Show
      Add a site which returns a 3xx code (eg: http://www.redhat.com ); Wait for the initial metrics to be gathered; Once the values show, check expand the "Last 24 Hours" section and observe that Availability is just showing a "%" value; Confirm the availability endpoint response in the Network panel of the browser console;

    Description

      (At least) Sites which return status code of 3xx (eg: http://www.redhat.com which returns 301 Moved Permanently) seem not to have their availability initialized and reported, so the response to the availability query is always something like:

      [{
        "start":1429034229095,
        "end":1429120629095,
        "downtimeDuration":0,
        "lastDowntime":0,
        "uptimeRatio":"NaN",
        "downtimeCount":0,
        "empty":true
      }]
      

      Notice "empty" being true and "uptimeRatio" being NaN, as if there were no values yet to calculate availability (when there are, see an example in the attached screenshot where the chart shows the collected metrics and the response to the availability query in the browser network console).

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexandrem_jira Alexandre Mendonça (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: