forked from grafana/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement queue to forward traces to metrics-generator (grafana#1331)
* Implement queue to forward traces to metrics-generator Use eviciting queue to buffer and send push requests from the distributor to the generator. This queue will drop the oldest item in the queue if it's full and a new request is pushed. * Format * Evicting queue improvements and fixes * Change implementation away from subscriptions * Implement circular queue * Lint * Add forwarder * Changelog entry * ShutdownCh unused * Add TODOs * Add overwrite function to queue * Add overwrites metric * Switch to channels approach * Refactor to address comments * minor fix * lint * Address last comments * Add metric for queue length * Address comments * Use RWMutex * Record metrics synchronously * Add queueManager default config * Rename forwarder metric * Remove unused method * Fix metric name * Address last comments
- Loading branch information
Showing
7 changed files
with
607 additions
and
29 deletions.
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
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
Oops, something went wrong.