Enhancement in plugin configuration and bug fixes #61
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.
Features:
GF_REPORTER_PLUGIN_*
to avoid clashing with env vars from Grafana and other plugins.theme
config option has been added to control the theme of the panels in the report.Bugfix:
Seems like there is a bug in the worker pool implementation. Upon finishing an API request to
report
endpoint, the context channel is being closed and thus the loop goes into busy loop due tocontinue
statement. This is hogging up the CPU a lot. To reproduce, spin up docker compose developement env, make a API request toreport
end point and once the report has been generated, watch the CPU usage of plugin process.Not sure why the context is being closed here. So the fix was to
return
upon the closure of context channel and use background context for the workers. When plugin app instance is being disposed, we cancel the context indispose
receiver safely releasing the resources owned by worker pool.@jkroepke Was it a typo to have
continue
statement there?CI:
e2e test matrix has been updated to add more tests with and without remote chrome and service accounts
Docs:
README
has been updatedCloses #56