Skip to content

CorpGlory/grafana-graph-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS REPO IS NOT SUPPORTED, ONLY FOR EDU PURPOSES

Graph Panel

Webpack copy of Grafana default panel. Now you can make your plugins based on graph panel and hack it easier.

Works only on Grafana versions >= V5.0.1

Build

npm install
npm run build

After you fork

Sorry, but it's common for Grafana plugins make directives which collide with each other. It comes from AngularJS. Use ctrl+f to find params in source code files below:

  • Change in plugin.json id from graph-panel-template-panel to something-else-graph-panel
  • Change in src/graph.ts directive name from grafanaTemplateGraph to somethingElseGraph
  • Change in src/legend.ts directive name from graphTemplateLegend to somethingElseLegend
  • Change in src/axes_editor param templateUrl param from public/plugins/graph-panel-template-panel/partials/axes_editor.html to public/plugins/something-else-graph-panel/partials/axes_editor.html
  • Change in template.ts param grafana-template-graph to something-else-graph and graph-template-legend to something-else-legend
  • in case you debug with VSCode, change in .vscode/launch.json param /public/plugins/graph-panel-template-panel to /public/plugins/something-else-graph-panel

Credits

About

Webpack copy of Grafana default panel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published