-
Notifications
You must be signed in to change notification settings - Fork 1
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
[MM-55224] convert plugin config to scraper config #3
Conversation
if *c.ScrapeTimeoutSeconds < 1 { | ||
return errors.New("scrape timeout should be greater than zero") | ||
} | ||
if *c.BodySizeLimitBytes < 100 { |
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.
Should we also impose a max body size limit?
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.
Hmm, we can do that. Ideally it should be unbounded as we are unaware of possible sample size but for our case we can forecast.
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 think we should have some limit as a config for customers to enforce. We can have some large value as default, but it'd be good to allow customers to set some limit as their preference.
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'll add that check for the next PR
Why do we have to disable typecheck though? I've never seen a need for that. Just curious. |
There were quite a lot false positives, you can check: https://github.com/mattermost/mattermost-plugin-metrics/actions/runs/7207283664/job/19634510528 I am not sure how it started to happen as they are all unrelated. Tried with the newer version of |
This
looks like a setup issue for sure. Somewhere, it's not able to compile the code correctly. |
I tired to build it was compiling but something with the |
That is a CI issue. @fmartingr is working on it: mattermost/actions-workflows#38 |
Summary
Convert plugin config to scraper config
Ticket Link
https://mattermost.atlassian.net/browse/MM-55224