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
npm install
npm run build
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 fromgraph-panel-template-panel
tosomething-else-graph-panel
- Change in
src/graph.ts
directive name fromgrafanaTemplateGraph
tosomethingElseGraph
- Change in
src/legend.ts
directive name fromgraphTemplateLegend
tosomethingElseLegend
- Change in
src/axes_editor
paramtemplateUrl
param frompublic/plugins/graph-panel-template-panel/partials/axes_editor.html
topublic/plugins/something-else-graph-panel/partials/axes_editor.html
- Change in
template.ts
paramgrafana-template-graph
tosomething-else-graph
andgraph-template-legend
tosomething-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
- grafana-plugin-template-webpack-typescript
- @types/grafana
- github.com/chartwerk/grafana-chartwerk-app -- a new way to build your Grafana plugins