Currently chrome-only.
- Inject links into Grafana dashboards to explore queries in Weave Cloud.
Install dependencies: npm install
Build extension: npm run build
Install extension: Open Chrome's extensions settings, enable the Developer mode,
then point "Load unpacked extensions" to the chrome directory of this repository.
npm start starts webpack with a watcher.
-
background.jsis responsible for detecting navigation to dashboards. If a dashboard is detected, its definition is loaded and parsed for graph panels. The extracted queries are then sent tocontent.js -
content.jsbuilds links for the queries and injects them into the dashboard -
link.jsxbuilds the link markup (using React -- this is currently overkill, but helpful if we want to build browser-action popups)
-
Make sure
LOCAL = falseinsrc/components/link.jsx -
Run
npm i && webpackto build the bundles. -
Zip the
chromedirectory. -
Make sure you are a member of the Weaveworks Group
chrome-webstore, then go to https://chrome.google.com/webstore/developer/dashboard and update the extension by uploading the zip file.
If you have any questions about, feedback for or problems with weavecloud-browser-extension:
- Invite yourself to the Weave Users Slack.
- Ask a question on the #general slack channel.
- File an issue.
Weaveworks follows the CNCF Code of Conduct. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a Weaveworks project maintainer, or Alexis Richardson (alexis@weave.works).
Your feedback is always welcome!