Skip to main content

At a glance

Overview

grafyaml takes descriptions of Grafana dashboards in YAML format, and uses them to produce JSON formatted output suitable for direct import into Grafana.

The tool uses the Voluptuous data validation library to ensure the input produces a valid dashboard. Along with validation, users receive the benefits of YAML markup such as comments 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: hostname
      type: query
      datasource: graphite
      query: node*
      refresh: true
  title: My great dashboard
  rows:
    - title: CPU Usage
      height: 250px
      panels:
          - title: CPU Usage for $hostname
            type: graph
            datasource: graphite
            targets:
              - target: $hostname.Cpu.cpu_prct_used

grafyaml can be very useful in continuous-integration environments. Users can specify their dashboards via a normal review process and tests can validate their correctness.

The tool can also take JSON manually exported from the Grafana interface and load it as a dashboard. This allows keeping dashboards that have been edited with the inbuilt editor externally version controlled.

A large number of examples are available in the OpenStack project-config repository, which are used to create dashboards on http://grafana.openstack.org.

Metadata

Release files for grafyaml 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grafyaml 0.0.9
File Size Uploaded
grafyaml-0.0.9.tar.gz 45.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grafyaml 0.0.9
File Interpreter ABI Platform
grafyaml-0.0.9-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 83.6 kB

Release files / grafyaml-0.0.9.tar.gz

Download URL grafyaml-0.0.9.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f3498196a351929e663fb5b9dba3b9bab721ff0445d0b1ac882c175b790359df
BLAKE2b-256 checksum
How to use checksums
bcef2561221c7431ede9d69e72a603607ed6aa804961c1d0661cfb7b7e0eb8bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / grafyaml-0.0.9-py2.py3-none-any.whl

Download URL grafyaml-0.0.9-py2.py3-none-any.whl
Size 38.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c818ff62f065d2a8c4fdf72ffb487fa2dedfe82e762b0c1c2c8e85af31ae05a0
BLAKE2b-256 checksum
How to use checksums
35f847fb18aa2f02f25e6a9f7e13caa4fcf851a2e1c1e5ab8af0278fb2bf9e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

2 release files

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page