m-d-johnson / grafana-examples

grafanalib examples

Home Page:https://github.com/weaveworks/grafanalib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grafanalib Examples

I'm starting to compile a collection of grafanalib examples.

Grafanalib does have some examples, they're listed in this directory

In terms of compiling: Install grafanalib using 'pip3 install --user grafanalib'

Then, in the same directory as example.py:

generate-dashboard -o dash.json example.py && cat dash.json

This compiles the dashboard to JSON that Grafana understands. You can then Add a New Dashboard and import from JSON.

Tip: I use pbcopy to put the resulting JSON straight to my Mac's clipboard, ready to paste straight into the text field.

generate-dashboard -o dash.json example.py && cat dash.json | pbcopy

I have no connection with WeaveWorks. This is not an official grafanalib/weaveworks project.

About

grafanalib examples

https://github.com/weaveworks/grafanalib/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%