-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Metrics stdout export pipeline #265
Merged
Merged
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
19346a4
Add MetricAggregator.Merge() implementations
jmacd cb9557a
Upstream
jmacd 03f7854
Update from feedback
jmacd 09d88a1
Type
jmacd 865b7ab
Upstream
jmacd 5719abe
Upstream
jmacd c6ca4fd
Ckpt
jmacd acc2450
Ckpt
jmacd 5bebed5
Upstream
jmacd 5b23af4
Add push controller
jmacd 80e0df8
Ckpt
jmacd f533814
Upstream
jmacd 3423242
Add aggregator interfaces, stdout encoder
jmacd a788631
Modify basic main.go
jmacd fbc50a1
Main is working
jmacd 49aa969
Batch stdout output
jmacd c2c73be
Sum udpate
jmacd 5ea9128
Rename stdout
jmacd f0d986c
Add stateless/stateful Batcher options
jmacd 63d79a8
Undo a for-loop in the example, remove a done TODO
jmacd 8716da3
Merge
jmacd 837035d
Update imports
jmacd 9586471
Add note
jmacd 0c09f8c
Rename defaultkeys
jmacd 03ff7d2
Support variable label encoder to speed OpenMetrics/Statsd export
jmacd 88a236e
Lint
jmacd bf313da
Upstream
jmacd db41c9d
Doc
jmacd dd6229c
Merge
jmacd 0bc5ffe
Precommit/lint
jmacd c575b08
Simplify Aggregator API
jmacd 3be8e6e
Record->Identifier
jmacd 214b882
Remove export.Record a.k.a. Identifier
jmacd 048c8d9
Checkpoint
jmacd 657c064
Propagate errors to the SDK, remove a bunch of 'TODO warn'
jmacd 0d78cfa
Checkpoint
jmacd f81aa34
Introduce export.Labels
jmacd 94580ae
Comments in export/metric.go
jmacd 2dee926
Comment
jmacd e4c9dde
Merge
jmacd a7623d8
More merge
jmacd 8fcfe95
More doc
jmacd df3b3af
Complete example
jmacd 4121362
Lint fixes
jmacd 41d3f7b
Add a testable example
jmacd 72872fa
Lint
jmacd 0160c3d
Let Export return an error
jmacd 77e4c3f
add a basic stdout exporter test
jmacd dc23ae1
Add measure test; fix aggregator APIs
jmacd 18b8340
Upstream
jmacd dfbc881
Use JSON numbers, not strings
jmacd 9ecdf51
Test stdout exporter error
jmacd 60ab98b
Add a test for the call to RangeTest
jmacd bf2f1e6
Add error handler API to improve correctness test; return errors from…
jmacd 419ed4f
Undo the previous -- do not expose errors
jmacd 0953112
Add simple selector variations, test
jmacd 8034ebe
Repair examples
jmacd a472048
Test push controller error handling
jmacd 08a26de
Add SDK label encoder tests
jmacd c09bd0e
Add a defaultkeys batcher test
jmacd 9ef0a37
Add an ungrouped batcher test
jmacd 557f912
Lint new tests
jmacd 0133786
Respond to krnowak's feedback
jmacd e518398
Undo comment
jmacd 72e3d30
Use concrete receivers for export records and labels, since the const…
jmacd 9acdc5a
Bug fix for stateful batchers; clone an aggregator for long term storage
jmacd d7a5cda
Upstream
jmacd 399c34c
Remove TODO addressed in #318
jmacd 2a75566
Add errors to all aggregator interfaces
jmacd efb75ed
Handle ErrNoLastValue case in stdout exporter
jmacd 1153503
Move aggregator API into sdk/export/metric/aggregator
jmacd 623a63a
Update all aggregator exported-method comments
jmacd e298c94
Document the aggregator APIs
jmacd d75bc6e
More aggregator comments
jmacd 723d084
Add multiple updates to the ungrouped test
jmacd 8b5a4d6
Fixes for feedback from Gustavo and Liz
jmacd 13e0580
Producer->CheckpointSet; add FinishedCollection
jmacd b75059e
Process takes an export.Record
jmacd d03709a
ReadCheckpoint->CheckpointSet
jmacd 93fe58f
EncodeLabels->Encode
jmacd 782cabf
Format a better inconsistent type error; add more aggregator API tests
jmacd eedaaab
More RangeTest test coverage
jmacd f67b47c
Make benbjohnson/clock a test-only dependency
jmacd 2e7007d
Merge
jmacd 046db4a
Handle ErrNoLastValue in stress_test
jmacd a294720
Upstream
jmacd 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
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
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.
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.
Use of these extra labels was not obvious until I understood how everything works. Essentially they are ignored because it is using defaultkey batcher which only uses labels defined as part of metric descriptor.
Also, labels set via distributedcontext are not automatically used. It is by design but it is not obvious.
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.
I sort of feel like throwing away this example. It's full of random, incoherent calls.