Skip to content

weaveworks/weavecloud-browser-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weave Cloud Browser Extensions

Currently chrome-only.

  • Inject links into Grafana dashboards to explore queries in Weave Cloud.

Setup

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.

Development

npm start starts webpack with a watcher.

  • background.js is 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 to content.js

  • content.js builds links for the queries and injects them into the dashboard

  • link.jsx builds the link markup (using React -- this is currently overkill, but helpful if we want to build browser-action popups)

Publish

  1. Make sure LOCAL = false in src/components/link.jsx

  2. Run npm i && webpack to build the bundles.

  3. Zip the chrome directory.

  4. 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.

LICENSE

APL2.0

Getting Help

If you have any questions about, feedback for or problems with weavecloud-browser-extension:

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!

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •