-
Notifications
You must be signed in to change notification settings - Fork 217
Create insight collector #1287
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
Merged
Merged
Create insight collector #1287
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
0fc0b7d
Create insight collector
sanposhiho 6a44216
Format unfmt-ed files
85e9a15
Fix by linter
sanposhiho dddcf8f
Merge branch 'create-insight-collector' of github.com:pipe-cd/pipe in…
sanposhiho 26993d4
List Aplication with sort
sanposhiho eb9eeab
Run with cron
sanposhiho 7014aba
Fix to get deployments from store once
sanposhiho f5fcc50
Fix to use split processes years and chunk
sanposhiho 065356a
Fix to use timezone utc
sanposhiho b4f5d81
Add deps to BUILD.bazel
sanposhiho fd7d585
Fix import order and rm unuse option
sanposhiho 185d231
Add control plane test
sanposhiho ca85ff5
Add error handling on insight collector
sanposhiho 8d199dc
Format some points
sanposhiho 21e55a4
Add function into interface
sanposhiho af2261e
Remove AppendDataPoint
sanposhiho 6c3d89e
Use sorted list instead of map as updatedps
sanposhiho 3e8419b
Add TODO comment
sanposhiho f32a508
Summarize page size in const valiable
sanposhiho b5dbab9
Fix todo comment
sanposhiho ff11d73
Add flag for disable insightcollector
sanposhiho 9d3b3c1
Remove unuse func
sanposhiho 77ff912
Fix error messages
sanposhiho 5b352d1
Fix comment
sanposhiho 08e8b14
Fix to use created at as fileter'
sanposhiho 31c3187
Add option enable-insight-collector
sanposhiho 5c288cd
Create function and split process
sanposhiho 5065a06
Fix to process file not found pattern
sanposhiho c14aaec
Fix miss assignment
sanposhiho 79f2b91
Use updatedAt instead of createdAt
sanposhiho be05090
Fix error handling
sanposhiho 38c4be2
Fix testcase
sanposhiho dc6e7f1
Merge branch 'master' into create-insight-collector
sanposhiho c951140
Format unfmt-ed files
1945ac5
Add project level insight collector
sanposhiho a9e258c
Fix some variable name and comments
sanposhiho 4641521
Merge branch 'create-insight-collector' of github.com:pipe-cd/pipe in…
sanposhiho d85c48b
Use ComplatedAt instead of UpdatedAt
sanposhiho ca698ba
Rename field
sanposhiho cdc6f9f
Add log message with duration
sanposhiho 4c051d2
Fix to continue working with other chunk if fail
sanposhiho afde1f5
Ignore deleted application
sanposhiho 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,32 @@ | ||
| load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
| load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
|
||
| go_library( | ||
| name = "go_default_library", | ||
| srcs = ["collector.go"], | ||
| importpath = "github.com/pipe-cd/pipe/pkg/app/ops/insightcollector", | ||
| visibility = ["//visibility:public"], | ||
| deps = [ | ||
| "//pkg/datastore:go_default_library", | ||
| "//pkg/insightstore:go_default_library", | ||
| "//pkg/model:go_default_library", | ||
| "//pkg/filestore:go_default_library", | ||
| "@org_uber_go_zap//:go_default_library", | ||
| ], | ||
| ) | ||
|
|
||
| go_test( | ||
| name = "go_default_test", | ||
| size = "small", | ||
| srcs = [ | ||
| "collector_test.go" | ||
| ], | ||
| embed = [":go_default_library"], | ||
| deps = [ | ||
| "//pkg/insightstore:go_default_library", | ||
| "//pkg/filestore/filestoretest:go_default_library", | ||
| "//pkg/datastore:go_default_library", | ||
| "//pkg/datastore/datastoretest:go_default_library", | ||
| "@com_github_golang_mock//gomock:go_default_library", | ||
| "@com_github_stretchr_testify//assert:go_default_library", | ||
| ], | ||
| ) |
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.
Btw, Could you add a log to show how long does each function take to run?
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.
OK, added:+1: