forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Long-Running PR] Kubernetes Asset and Topology POC #22
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This includes the server and public folders with a simple page template in place.
.keyword was introduced in the queries when the mappings were improperly configured. First attempt to change the mappings failed because it had subobjects: false in the top level of the dynamic assets mapping template. I moved subobjects: false into the properties -> asset block instead, so that ECS fields can be nested as usual, but asset fields will only work as dotted.
Fix Cloud Data
Fix cloud data ingest
Single cluster page
Adds node page with metrics and logs
Fixing design for k8s node representation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Replaces #15, #18, and #21
This PR tracks all of the work merged for the asset inventory POC.
Other PRs for this work should be made against this branch and not against main.
Running this PR
asset-inventory
branch of my kibana fork.yarn kbn bootstrap
to get the needed dependencies installedyarn es snapshot --license=trial --ssl
Once running, Kibana makes the following available:
Required environment vars
These are the env vars that this Kibana branch looks for in order to (a) collect asset data, and (b) write that data to ES. I use a .env file (now added to Kibana's .gitignore) and the autoenv tool, but you can set these however you like so long as they are set in the context of the Kibana running process(es).
REST API
All available endpoints can be seen in code in the plugin file: https://github.com/jasonrhodes/kibana/blob/asset-inventory/x-pack/plugins/asset_inventory/server/plugin.ts
Important Notes:
kbn-xsrf
header that can be any string you like.GET /api/asset-inventory/ping
Verifies that the API is up and running.
GET /api/asset-inventory
Returns assets for the asset inventory explore page
GET /api/asset-inventory/k8s/clusters
Returns list of known K8s clusters
POST /api/asset-inventory/collect
With body (or "all" for all of the collections):