-
Notifications
You must be signed in to change notification settings - Fork 3
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
Run ListMetrics calls with goroutines. #53
Draft
cristiangreco
wants to merge
13
commits into
live
Choose a base branch
from
cristian/list-metrics-concurrency
base: live
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
86b0764
Return error on getFullMetricsList instead of log.Fatal (#1)
kgeckhart cac7ca4
Move replacer and splitRegexp to package level (#2)
kgeckhart 98f5a60
Eliminate global labelMap and build a labelSet for metrics in ensureL…
kgeckhart 7cfecdb
Merge pull request #3 from grafana/keckhart/label-map-cannot-be-global
cristiangreco 70baf31
Merge master in to live to upgrade to v0.32.0
kgeckhart e8c0ee0
Allow injection of a go-kit logger in to update.UpdateMetrics and swi…
kgeckhart 445cae5
Decouple yace_* metric registration from UpdateMetrics (#8)
kgeckhart a01fea5
Support a provided set of observed labels for each metric (#9)
kgeckhart 1bc09af
Ensure logger is provided (#10)
kgeckhart edb42e2
Add the plus sign back for the loop increment (#11)
kgeckhart 6ca630f
Merge 0.34.0 and 0.33.0 (#30)
kgeckhart 69f6286
Expose AWS Metrics as an array in update.go (#31)
kgeckhart 7fa1455
Run ListMetrics calls with goroutines.
cristiangreco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Run ListMetrics calls with goroutines.
Execute ListMetrics calls in separate goroutines (one for each metric), in a similar way to how GetMetricData requests are handled. This change removes semaphore usage (it's not used in GetMetricData as well) for the sake of making it easier to reason about the code. It can easily be added back in case we hit any issue around e.g. rate limits. In local tests, the speedup seems to be particularly effective when requesting 4 or more metrics in parallel (e.g. especially with EC2/EBS).
- Loading branch information
commit 7fa145567924e8661351d6c80905f2afbfe723a1
There are no files selected for viewing
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
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.
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.
Maybe we could add a prom metrics to track both this errors and the scenario below with zero resources?