-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from grafana/malcolmholmes/marketplace-on-readme
Tidy README and correct git repo
- Loading branch information
Showing
4 changed files
with
42 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Extension communication with Grafana | ||
|
||
The below diagram explains how this extension communicates with Grafana. | ||
|
||
For best viewing, view this page on GitHub. | ||
|
||
```mermaid | ||
sequenceDiagram | ||
participant Webview as Webview <br> (inside the VS Code Extension) | ||
participant Iframe as Iframe (Grafana) <br> (rendered inside the extension's webview) | ||
participant ProxyServer as Proxy server <br> (running inside the extension) | ||
participant Grafana as Grafana Instance <br> (running outside the extension) | ||
participant FileSystem as File system | ||
Note over ProxyServer: Starts on random port | ||
Webview->>Iframe: Render an iframe for Grafana. Callback URL to the proxy is an iframe src URL param | ||
Iframe->>ProxyServer: Requests HTML dashboard page/etc | ||
ProxyServer->>Grafana: Requests HTML dashboards page/etc | ||
Iframe->>ProxyServer: Request to retrieve the JSON for opened dashboard | ||
FileSystem->>ProxyServer: Retrieve JSON | ||
ProxyServer-->>Iframe: JSON for opened dashboard | ||
Iframe->>ProxyServer: Edited dashboard JSON on save | ||
ProxyServer->>FileSystem: Edited dashboard JSON | ||
``` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.