-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Use APM index pattern for static dashboard ES|QL queries #246772
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
base: main
Are you sure you want to change the base?
Conversation
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
|
|
Pinging @elastic/obs-presentation-team (Team:obs-presentation) |
|
@elasticmachine merge upstream |
miloszmarcinkowski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Replace indexPattern placeholder | ||
| const dashboardStringWithReplacements = Mustache.render(dashboardString, { | ||
| indexPattern: dataView.title, | ||
| indexPattern: apmIndices?.metric ?? dataView.title, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| indexPattern: apmIndices?.metric ?? dataView.title, | |
| indexPattern: apmIndices?.metric ?? dataView.getIndexPattern(), |
Unrelated to changes but we can replace deprecated direct usage of title property
In all of the APM static dashboards that use ES|QL queries, replace
FROM *:metrics...withFROM {{indexPattern}}.When the dashboards load, the index pattern is replaced by the value from the APM data view.
Fixes #246757