Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Grafana integrations common lib

This common library can be used to quickly create dashboards' panels and annotations.

By using this common library we can 'enforce' common style choices across multiple dashboards and mixins.

Import

jb init
jb install https://github.com/grafana/jsonnet-libs/common-lib

Use

local commonlib = import 'github.com/grafana/jsonnet-libs/common-lib/common/main.libsonnet';

local panels = {
  cpuUsage: commonlib.panels.cpu.timeSeries.utilization.new(targets=[targets.cpuUsage]),
}

See windows-observ-lib for full example.