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

Lever regex for indexing of resource paths (resorceId)

    XMLWordPrintable

Details

    • Story
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 29.0.0
    • None
    • None
    • Security Level: Default (Default Security Scheme)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.