Skip to content

Webpack copy of Grafana default panel

License

Notifications You must be signed in to change notification settings

ApicaSystem/Grafana.graph-panel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Made by CorpGlory Dev Team

Based on

About

Webpack copy of Grafana default panel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 72.6%
  • HTML 14.6%
  • JavaScript 12.8%