A library that extends grafonnet with Polytstat panel plugin template (By Grafana Labs).
Based on version 1.1.0 of Polystat panel.
grafonnet and its dependencies must be installed.
Clone this git repository inside the grafonnet one:
git clone https://github.com/thelastpickle/grafonnet-polystat-panel.git
You can use Jsonnet Bundler instead:
{
"dependencies": [
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet-lib",
"subdir": "grafonnet"
}
},
"version": "master"
},
{
"source": {
"git": {
"remote": "https://github.com/thelastpickle/grafonnet-polystat-panel",
}
},
"version": "master"
}
],
"legacyImports": true
}
Then import the plugins with grafonnet in your jsonnet code:
local grafana = (import 'grafonnet/grafana.libsonnet')
+ (import 'grafonnet-polystat-panel/plugin.libsonnet');
See tests for example.
Feel free to submit issues, as well as pull requests.