joanlopez / grafonnet-example Goto Github PK
View Code? Open in Web Editor NEWExample repository with a Grafana dashboard defined with Grafonnet and deployed with Grizzly
Home Page: https://github.com/joanlopez/grafonnet-example
Example repository with a Grafana dashboard defined with Grafonnet and deployed with Grizzly
Home Page: https://github.com/joanlopez/grafonnet-example
Thanks for your example!
Just wanted to raise the issue that the example is using deprecated syntax for defining the dashboards:
grafonnet-example/dashboards.libsonnet
Lines 2 to 4 in c68320c
Ref Grizzly documentation regarding Hidden Elements:
NOTE: This functionality is deprecated. It was necessary to support the formats within Monitoring Mixins. However, using explicit resources provides a cleaner and language agnostic way to describe resources and their metadata. If you have existing libaries that use hidden elements, it isn't too hard to write small functions to wrap these into resources.
I think your example dashboard instead should be something like this:
local grr = import 'github.com/grafana/jsonnet-libs/grizzly/grizzly.libsonnet';
{
dashboards: [
grr.dashboard.new('example', (import 'example.jsonnet')),
],
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.