-
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
cb9557a
Upstream
03f7854
Update from feedback
09d88a1
Type
865b7ab
Upstream
5719abe
Upstream
c6ca4fd
Ckpt
acc2450
Ckpt
5bebed5
Upstream
5b23af4
Add push controller
80e0df8
Ckpt
f533814
Upstream
3423242
Add aggregator interfaces, stdout encoder
a788631
Modify basic main.go
fbc50a1
Main is working
49aa969
Batch stdout output
c2c73be
Sum udpate
5ea9128
Rename stdout
f0d986c
Add stateless/stateful Batcher options
63d79a8
Undo a for-loop in the example, remove a done TODO
8716da3
Merge
837035d
Update imports
9586471
Add note
0c09f8c
Rename defaultkeys
03ff7d2
Support variable label encoder to speed OpenMetrics/Statsd export
88a236e
Lint
bf313da
Upstream
db41c9d
Doc
dd6229c
Merge
0bc5ffe
Precommit/lint
c575b08
Simplify Aggregator API
3be8e6e
Record->Identifier
214b882
Remove export.Record a.k.a. Identifier
048c8d9
Checkpoint
657c064
Propagate errors to the SDK, remove a bunch of 'TODO warn'
0d78cfa
Checkpoint
f81aa34
Introduce export.Labels
94580ae
Comments in export/metric.go
2dee926
Comment
e4c9dde
Merge
a7623d8
More merge
8fcfe95
More doc
df3b3af
Complete example
4121362
Lint fixes
41d3f7b
Add a testable example
72872fa
Lint
0160c3d
Let Export return an error
77e4c3f
add a basic stdout exporter test
dc23ae1
Add measure test; fix aggregator APIs
18b8340
Upstream
dfbc881
Use JSON numbers, not strings
9ecdf51
Test stdout exporter error
60ab98b
Add a test for the call to RangeTest
bf2f1e6
Add error handler API to improve correctness test; return errors from…
419ed4f
Undo the previous -- do not expose errors
0953112
Add simple selector variations, test
8034ebe
Repair examples
a472048
Test push controller error handling
08a26de
Add SDK label encoder tests
c09bd0e
Add a defaultkeys batcher test
9ef0a37
Add an ungrouped batcher test
557f912
Lint new tests
0133786
Respond to krnowak's feedback
e518398
Undo comment
72e3d30
Use concrete receivers for export records and labels, since the const…
9acdc5a
Bug fix for stateful batchers; clone an aggregator for long term storage
d7a5cda
Upstream
399c34c
Remove TODO addressed in #318
2a75566
Add errors to all aggregator interfaces
efb75ed
Handle ErrNoLastValue case in stdout exporter
1153503
Move aggregator API into sdk/export/metric/aggregator
623a63a
Update all aggregator exported-method comments
e298c94
Document the aggregator APIs
d75bc6e
More aggregator comments
723d084
Add multiple updates to the ungrouped test
8b5a4d6
Fixes for feedback from Gustavo and Liz
13e0580
Producer->CheckpointSet; add FinishedCollection
b75059e
Process takes an export.Record
d03709a
ReadCheckpoint->CheckpointSet
93fe58f
EncodeLabels->Encode
782cabf
Format a better inconsistent type error; add more aggregator API tests
eedaaab
More RangeTest test coverage
f67b47c
Make benbjohnson/clock a test-only dependency
2e7007d
Merge
046db4a
Handle ErrNoLastValue in stress_test
a294720
Upstream
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.