opensearch-project / dashboards-observability

Visualize and explore your logs, traces and metrics data in OpenSearch Dashboards
https://opensearch.org/docs/latest/observability-plugin/index/
Apache License 2.0
14 stars 52 forks source link

Supporting custom index patterns for Trace Analytics - Data Prepper #234

Open derek-ho opened 1 year ago

derek-ho commented 1 year ago

Image

Additional option/indices shown by detecting mapping on indices

derek-ho commented 1 year ago

This will allow users to select a specific index that may correlate to a specific naming convention for a given app/subset of users in trace analytics and app analytics.

Feature Proposal [WIP]

Currently Trace Analytics has a data type selector - Data Prepper or Jaeger, I am proposing to add 2 sub-selector under Data Prepper where users will be able to select a specific index/indices/index pattern on which they will be able to search for traces - one for the span index and one for the service map index

We will first grab all of the indices through the cat indices API, get all of those indices (excluding indices that start with a dot(.))and their mappings through the indices get mappings API, and add a constant representing the data prepper index mapping format. We will filter out any indices that do not follow that index mapping format, and allow users to select index/indices/index pattern on the resulting list. (Are there any security concern? Any network bandwidth limit exceeded concern over getting the mappings of all of the indices?)

derek-ho commented 1 year ago

Had a conversation with @YANG-DB, this will not be easily supportable via checking mappings - should be done via sampling/other means. High level goal is: https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html. Moving this out of 2.6 tasks