-
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
[Asset Manager] services endpoint #160294
[Asset Manager] services endpoint #160294
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
@@ -74,9 +74,6 @@ disabled: | |||
# Scalability testing config that we run in its own pipeline | |||
- x-pack/test/scalability/config.ts | |||
|
|||
# Asset Manager configs, in tech preview, will move to enabled after more stability introduced | |||
- x-pack/test/api_integration/apis/asset_manager/config.ts |
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.
I don't see it based on the description: why is this test removed?
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.
It is removed from the disabled
block and added to enabled
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.
my bad :)
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
I think we should expose a public client to get the services as part of this PR. What do you think? |
Good call for the client, but I'd be inclined to implement it as a separate change since it will also need to expose the /hosts endpoint |
@elasticmachine merge upstream |
## Summary Closes #161887 Merges most of the functionality from `feat/obs-asset-manager-demo` branch. We remove implicit collection code while including: - asset collectors from signals (also include pods and containers but we don't use then directly) - source configuration code (assets or signals) - `assetAccessor` logic that determines which indices to query The change also enables ftr test suite. We'll also merge the services endpoint #160294 when approved. --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Jason Rhodes <[email protected]>
Closes elastic#159641 Implements `/assets/services` endpoint that returns service assets found in the configured source (signals or assets indices). Consumer can provide a `parent` query to filter the returned services. While the _assets_ mode supports any kind of parent/depth thanks to its common interface, the _signals_ mode only supports host parent for the moment. 1. pull this branch and point it at an oblt-cli created cluster that uses cross-cluster search to read from the edge cluster 2. add the following[1] to your kibana.yml file 3. hit `/api/asset-manager/assets/services?from=<from>&to=<to>&(parent=<host>)?`. services should be returned. Add/remove parent query string to filter services only running on specific host. 4. update `lockedSource: assets` to read from assets generated by implicit collection 5. repeat 3. [1] ``` xpack.assetManager: alphaEnabled: true sourceIndices: metrics: remote_cluster:metricbeat*,remote_cluster:metrics-* logs: remote_cluster:filebeat*,remote_cluster:logs-* traces: remote_cluster:traces-* serviceMetrics: remote_cluster:metrics-apm* serviceLogs: remote_cluster:logs-apm* lockedSource: signals ``` --------- Co-authored-by: Kibana Machine <[email protected]>
Summary
Closes #159641
Implements
/assets/services
endpoint that returns service assets found in the configured source (signals or assets indices). Consumer can provide aparent
query to filter the returned services. While the assets mode supports any kind of parent/depth thanks to its common interface, the signals mode only supports host parent for the moment.Testing
/api/asset-manager/assets/services?from=<from>&to=<to>&(parent=<host>)?
. services should be returned. Add/remove parent query string to filter services only running on specific host.lockedSource: assets
to read from assets generated by implicit collection[1]