-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix(filter): fix support custom retention for tagged metrics #950
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## master #950 +/- ##
=======================================
Coverage 69.25% 69.26%
=======================================
Files 196 196
Lines 11040 11041 +1
=======================================
+ Hits 7646 7647 +1
Misses 2943 2943
Partials 451 451
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
/build |
/build |
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.
Надушнил немного...
filter/cache_storage.go
Outdated
@@ -11,7 +13,12 @@ import ( | |||
"github.com/moira-alert/moira/metrics" | |||
) | |||
|
|||
var defaultRetention = 60 | |||
var ( | |||
defaultRetention = 60 |
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.
Мб константой эту штуку сделать? Вроде нигде ей ничего не присваивается.
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.
Сделал
filter/cache_storage.go
Outdated
var ( | ||
defaultRetention = 60 | ||
|
||
InvalidRetentionsFormatErr = errors.New("Invalid retentions format, it is correct to write in the format 'retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ...'") |
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.
Ошибки не должны быть с маленькой буквы? (у меня Goland подчеркнул)
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.
Резонно, ошибка на текущий момент по сути наша внутренняя и снаружи не нужна
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.
Исправил
/build |
Build and push Docker images with tag: 2024-08-12.a5ba594 |
No description provided.