Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12731 Optimize Performance of Timeseries Integration Layer
  3. NMS-12786

Remove nececessity to retrieve Metric when reading Samples

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: 26.1.3
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Sprint:
      Horizon 2020 - May 27, Horizon 2020 - June 10, Horizon 2020 - June 24, Horizon 2020 - July 8

      Description

      Today the TSS Integration Layer expects to get the full Metric for each data point back from the database:

      List<Sample> getTimeseries(TimeSeriesFetchRequest request)

      This has 2 downsides:

      • it might be a lot of data to retrieve
      • we need to reconstruct the tags in order to recreate the metric.

      This should be unnecessary since we have already the Metric (part of the TimeSeriesFetchRequest).

      So why won't we remove the necessity to query for the Metric?

      Because we need it to get the type of the metric (counter, gauge, etc) in order to aggregate when using the Newts aggregation. Maybe we can remove that dependency and  therefor drop the need to load the metric at all?

        Attachments

          Activity

            People

            Assignee:
            patrick.schweizer Patrick Schweizer
            Reporter:
            patrick.schweizer Patrick Schweizer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration