-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Make lightweight client for reading APM event data #67397
Comments
Pinging @elastic/apm-ui (Team:apm) |
Very much a ➕ on having a very thin wrapper around ES. Maybe we should just override |
I don't think the current signature is pretty either so open to suggestions. But I don't see how we can get rid of it entirely. How would we know which index the user wants to query without it? |
Changing it to v7.9.0 because it is going to be used in the Observability Overview page. #68176 |
Thinking about this some more, I wonder how it will work out if we start using metrics. e.g. the consumer of the API would need to check whether metrics should be queried, and then configure the appropriate indices, processor.event query and the field names for the aggregation. Maybe we do need a higher-level abstraction? |
I've added this to 7.11 since it's a requirement for moving the CSM app out of APM. |
@sqren I don't think it will be difficult. We'd need to remove the dependency on |
Great! I'm thinking we might want to do it after FF so it's ready at the beginning of the 7.11 development cycle. |
@sqren @dgieselaar any progress on this? are we on plan for 7.11 for this? |
@shahzad31 It's planned for 7.11 but we haven't started it yet. I'll make sure it gets prioritised and done sooner rather than later. |
Should we rescope this issue to only concern the APM event client? We can create an issue for the other clients (but I think it might just lying around in the backlog for a long while). |
@dgieselaar sgtm. Don't worry about creating new issues, I agree they'll just be clutter. |
An increasing number of teams need to read APM data (transactions, spans, errors etc.). Until now we’ve told them to read directly from the appropriate index with the caveat that these are configurable. Additionally they need to take into account that users can overwrite this via the runtime settings.
I propose that we create a lightweight client for consuming APM event data that will abstract this away.
Bonus points if we can add support for spaces (whatever that means in an APM context).
Client for APM indices
This is used for querying public (non system) APM indices and will use the current user's auth
The
apmEvents
will allows us to search the appropriate indices and inject a terms filter forprocessor.event
liketerms: { processor.event: ['transaction', 'span' ] }
.The text was updated successfully, but these errors were encountered: