Clark Boylan78abbf3a60Pull python base images from quay.io
The depends-on moves the publication location for these images toquay.io. Update grafyaml to pull from the new location when buildingimages to match.Depends-On:https://review.opendev.org/c/opendev/system-config/+/957277/Change-Id: I56e17ea5f1ac1c874e23fd28c05bae697c12f9d5
2025-09-04 21:20:55 +00:00
2020-06-25 15:04:14 +10:00
2019-04-19 19:26:03 +00:00
2015-05-04 13:14:07 -04:00
2023-09-19 11:06:17 -07:00
2015-05-04 13:14:07 -04:00
2015-05-04 13:14:07 -04:00
2015-05-04 13:14:07 -04:00
2015-05-04 13:14:07 -04:00
2020-06-25 15:04:14 +10:00
2020-06-24 11:52:23 +10:00

grafyaml

At a glance

Overview

grafyaml takes descriptions ofGrafana dashboards in YAML format, anduses them to produce JSON formatted output suitable for direct importinto Grafana.

The tool uses theVoluptuous datavalidation library to ensure the input produces a valid dashboard. Alongwith validation, users receive the benefits of YAML markup such ascomments and clearer type support.

For example, here is a minimal dashboard specification

dashboard:time:from:"2018-02-07T08:42:27.000Z"to:"2018-02-07T13:48:32.000Z"templating:-name: hostnametype: querydatasource: graphitequery: node*refresh:truetitle: My great dashboardrows:-title: CPU Usageheight: 250pxpanels:-title: CPU Usage for $hostnametype: graphdatasource: graphitetargets:-target: $hostname.Cpu.cpu_prct_used

grafyaml can be very useful in continuous-integrationenvironments. Users can specify their dashboards via a normal reviewprocess and tests can validate their correctness.

The tool can also take JSON manually exported from the Grafanainterface and load it as a dashboard. This allows keeping dashboardsthat have been edited with the inbuilt editor externally versioncontrolled.

A large number of examples are available in the OpenStackproject-configrepository, which are used to create dashboards onhttp://grafana.openstack.org.

Description
Tools to make Grafana dashboards from templates
Readme1.3 MiB
Languages
Python99%
Dockerfile1%