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

Lever regex for indexing of resource paths (resorceId)

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 29.0.0
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      All of the TSDBs we have been working with support regular expression matching on tags (or labels).

      By leveraging this fact, we can eliminate all the resource index related tag and replace these with a single tag that represents the resource path including the group name.

      Such a tag would look like:
      _resourceId=snmp:1:sinkConsumerMetrics:Telemetry-Netflow-5:org_opennms_core_ipc_sink

      The logic in the TimeseriesSearcher can then be replaced to perform regular expressions against this path to find metrics with varying levels of depth beneath a given prefix.

      Changes required to the TSS API

      Changes required to the TSS Integration Layer

      • Remove existing indexing logic and replace with a single '_path' tag as indicated above
      • Update TimeseriesSearcher to operate against this new tag using regular expressions of the form `prefix(seprator?) {1,depth}

        `

      • Revise caching in TimeseriesSearcher

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration