-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: record metrics from rules and export to remote (#3861)
* feat: record metrics from rules and export to remote * use CreatedBy instead of workerId * complete matcher and state recorder * observer pattern * flush async, rename MetricsObserver to SampleObserver, agent name * error handling * Init (tenant injection) * typo * get rid of TimeSeries redundant type * merging recorder into observer. renaming observer. static empty exporter * remove redundant AggregatedFingerprint * PR comments: SRP, testing, env vars, feature flag, ... * control nil exporter in flush * improve error for rules unmarshal * settingsv1 import rename * observer code comments * minor changes * fix *prompb.x, move recording rules funcs * use encoding/json * fix test * fix test by using json logger * metrics for exporter client (#3934) * metrics for exporter client * use promhttp instrumented round tripper * remove custom round tripper, add TODO
- Loading branch information
Showing
14 changed files
with
1,059 additions
and
22 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
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.