Ian Wienand 878b20898d Drop Python 2 support
This has bit-rotted as libraries have updated to Python 3 only.

Switch to hacking; some minor changes to regex-strings is all that is
required.

Drop py27 markers and move to Python 3 only.  Update requirements.

Depends-On: https://review.opendev.org/737666
Change-Id: Iabf201965129b3284166e1aedcb9f1c9d6109077
2020-06-24 11:52:23 +10:00
2018-06-04 20:42:30 +10:00
2020-06-24 11:52:23 +10:00
2019-04-19 19:26:03 +00: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
2015-05-04 13:14:07 -04:00
2015-05-04 13:14:07 -04:00
2018-06-04 20:42:30 +10:00
2018-06-04 20:42:30 +10:00
2020-06-24 11:52:23 +10:00
2020-06-24 11:52:23 +10:00
2020-06-24 11:52:23 +10:00
2020-06-24 11:52:23 +10:00

grafyaml

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.

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

Description
Tools to make Grafana dashboards from templates
Readme 1.3 MiB
Languages
Python 99%
Dockerfile 1%