Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12930

Timezone inconsistency when generating PDF reports from Grafana dashboards

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2020 - Oct 14-Oct 28, Horizon 2020 - Oct 28-Nov 11, Horizon 2020 - Nov 11-Nov 24
    • HB Backlog Status:
      Backlog CM

      Description

      From the OpenNMS WebUI, when you want to generate a PDF report from a Grafana Dashboard, the user can choose the time range and a timezone.

      Unfortunately, there is no correlation between these two. The time range is from the user perspective (i.e. the timezone from the user's browser).

      When generating the report, the X-Axis that represents time on the graphs will respect the chosen timezone and transform the time range accordingly. That is not the case of the range mentioned at the beginning of the report, right before the selected timezone leading to confusion.

      Two things need a fix here:

      1) In the JasperReport templates, make sure to transform the time range mentioned in the report to be consistent with the chosen timezone and the actual X-Axis from all the graphs.

      2) In the OpenNMS WebUI (the Angular app that handles the report generation), either adjust the time range when the timezone changes or add a note to be clear that the time range selection should be based on the user's timezone.

        Attachments

          Activity

            People

            Assignee:
            ranger Benjamin Reed
            Reporter:
            agalue Alejandro Galue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration