Skip to content

Shows how to create Grafana dashboards using jsonnet/jsonnet-bundler

Notifications You must be signed in to change notification settings

movatechtoday/grafana-dashboards-jsonnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana Dashboards with Jsonnet

The repository contains dashboard examples written in Jsonnet.

Run Grafana instance

First, you need a running instance of Grafana(see below)

Run the Grafana Docker container Start the Docker container by binding Grafana to external port 3000.

docker run -d -p 3000:3000 --name grafana grafana/grafana-oss
docker ps

Try it out, default admin user credentials are admin/admin.

Further documentation can be found at http://docs.grafana.org/installation/docker/.

Run Grafana container with persistent storage (recommended)

# Remove if exists
docker rm grafana

# create a persistent volume for your data in /var/lib/grafana (database and plugins)
docker volume create grafana-storage

# start grafana
docker run --name grafana \
  -d \
  -p 3000:3000 \
  -v grafana-storage:/var/lib/grafana \
  --network jsonnet-tutorial-net \
  grafana/grafana-oss

Open Grafana Web Console

Go to Grafana Admin Panel

Use admin/admin as username/password while authenticating.

After the login, the UI will ask for a new password. Please, use password value. It is used inside the scripts.

Demo Time

If you have a running instance of Grafana, just run a command

./bin/deploy-dashboard.sh dashboards/dashboard-templates.jsonnet 

You can select any dashboard example from the directory ./dashboards

About

Shows how to create Grafana dashboards using jsonnet/jsonnet-bundler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published