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

TSS: Cortex Plugin: Use REST API for reading timeseries

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 27.0.1
    • Component/s: Timeseries
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Sprint:
      Horizon 2020 - Sept 30-Oct 14, Horizon 2020 - Oct 14-Oct 28, Horizon 2020 - Oct 28-Nov 11, Horizon 2020 - Nov 11-Nov 24

      Description

      During testing of the Cortex plugin it turned out that we only get the most recent data back.
      It seems that this is due to the fact that we query the Ingester which return only data from memory (which i the most recent data).
      Instead we should use the REST API:
      https://prometheus.io/docs/prometheus/latest/querying/api/#instant-queries

      There was already some work done connecting to the REST API: https://github.com/OpenNMS/opennms-cortex-tss-plugin/blob/master/plugin/src/main/java/org/opennms/timeseries/cortex/CortexTSS.java#L192

      See also the following discussion with an in depth description of the issue: https://opennms.discourse.group/t/historical-time-series-data-is-incomplete-when-cortex-is-used/1491

        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