-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support rendering panel PNGs natively (#224)
* feat: Support rendering PNG natively * Using capture screenshot API of chromedp, we can generate PNG of each panel using current plugin. Thus, we avoid the dependency with grafana-image-renderer * Move all panel related JS to a separate .js file and embed that file with the app. Read the file content at runtime and inject it into chrome tab tasks. * Add duration debug logs for better debugging experience * Add e2e tests to test both native renderer and grafana-image-renderer integrations * test: Use Prom DS for API report tests. This test uses a wider interval simulating a real case where panel loading takes time. This ensures that the plugin works in real life scenarios as well. --------- Signed-off-by: Mahendra Paipuri <[email protected]>
- Loading branch information
1 parent
76a3d8a
commit 7c954c1
Showing
23 changed files
with
4,057 additions
and
245 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: 1 | ||
|
||
# A sample Prometheus datasource for testing purposes. | ||
datasources: | ||
- access: proxy | ||
isDefault: true | ||
jsonData: | ||
cacheLevel: Medium | ||
incrementalQuerying: true | ||
prometheusType: Prometheus | ||
prometheusVersion: 2.53.1 | ||
timeInterval: 10s | ||
name: Prometheus | ||
type: prometheus | ||
url: https://prometheus.demo.do.prometheus.io |
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.