Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Stack monitoring] Add agent-compatible data stream patterns to data fetching patterns #104271

Closed
Tracked by #120415
jasonrhodes opened this issue Jul 4, 2021 · 6 comments · Fixed by #119112
Closed
Tracked by #120415
Assignees
Labels
Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v8.1.0

Comments

@jasonrhodes
Copy link
Member

jasonrhodes commented Jul 4, 2021

We currently search for data in .monitoring-* and metricbeat-*, but once packages are an option, we'll need to search against the correct metrics-{dataset}-* data stream pattern(s). And because we no longer plan to support metricbeat-* indices, we should remove that pattern from the search.

AC:

  • metricbeat-* is removed from the search pattern for Stack Monitoring queries
  • metrics-* is added to the search pattern for Stack Monitoring queries -- there are two options for how to do this correctly
    • Option 1: we use the correct datasets for the patterns (metrics-{dataset}-*)
    • Option 2: we search metrics-* but use a "constant_keyword" field value as part of the query
  • Understand what changes are needed for functional tests and fix or log a ticket to update (note: esarchiver has had issues with data streams in the past)
@jasonrhodes jasonrhodes added Team:Monitoring Stack Monitoring team Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.15.0 labels Jul 4, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring (Team:Monitoring)

@weltenwort
Copy link
Member

Do we need to add logs-* anywhere?

The ui.logs.index config setting defaults to filebeat-*, which is apparently used in the registration of the internal log source:

index: schema.string({ defaultValue: 'filebeat-*' }),

@jasonrhodes jasonrhodes added the refined Issue refined, ready to work on label Jul 12, 2021
@simianhacker simianhacker self-assigned this Aug 11, 2021
@simianhacker
Copy link
Member

simianhacker commented Aug 12, 2021

I started digging into this issue, there are a few things I think we need to decide before moving forward...

  1. Should we remove the appendMetricbeatIndex functions? I think it's unnecessary complexity when we should just add metrics-monitoring-* to the current constants that define the .monitoring-* index patterns.
  2. Should we remove the mbSafeQuery? The main issue I have with this function is that it's original intent was to deal with mapping issue from legacy metricbeat-* indices, which we are no longer supporting. This function hides mapping errors when customer's mappings get messed up in .monitoring-* indices.
  3. What should we do with all the _mb tests? These are loading into metricbeat-* indices, which we are no longer supporting.
  4. Should we remove the UI config for the Metricbeat indices? Probably

@matschaffer
Copy link
Contributor

@jasonrhodes just a heads up that this seems to be a theme in SDHs. Guessing we'll have to address https://github.com/elastic/observability-dev/issues/1718 before we work on moving to metrics-* and removing metricbeat-* from the queries.

@jasonrhodes jasonrhodes added v8.0.0 v8.1.0 and removed Team:Monitoring Stack Monitoring team labels Nov 1, 2021
@neptunian neptunian self-assigned this Nov 3, 2021
@jasonrhodes
Copy link
Member Author

@jasonrhodes just a heads up that this seems to be a theme in SDHs. Guessing we'll have to address elastic/observability-dev#1718 before we work on moving to metrics-* and removing metricbeat-* from the queries.

@matschaffer not sure I follow? We can remove metricbeat-* anytime, but yes we will have to solve the issue you mention before we can add metrics-*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v8.1.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants