-
Notifications
You must be signed in to change notification settings - Fork 63
Improve performance capture ems targets #494
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,12 @@ def capture_ems_targets(_options = {}) | |
| return [] | ||
| end | ||
|
|
||
| super | ||
| MiqPreloader.preload([ems], :container_images => :tags, :container_nodes => :tags, :container_groups => [:tags, :containers => :tags]) | ||
|
|
||
| with_archived(ems.all_container_nodes) + | ||
| with_archived(ems.all_container_groups) + | ||
| with_archived(ems.all_containers) + | ||
| with_archived(ems.container_images) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NOTE there are no container_images that support capture, but they are rolled up.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still need to look into this question
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
the images are captured and then that kicks off perf_capture_rollup which then rollsup images into containers via So I don't see how we can roll those up without a container image going through metrics collection. the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @agrare ok. This is a simple answer: If no data will come back, then there is no reason to query them. Was that the only thing that was holding this up? Aah, just read again. |
||
| end | ||
|
|
||
| def prometheus_capture_context(target, start_time, end_time) | ||
|
|
||
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.
:tagsare included so we can ask each of the objects if they have capture enabled. (answered through tags)If we are punting on that behavior, I think we can drop
=> :tags