It seems newer voluptuous passes the specified default value into the
verification method. Previously if data wasn't supplied it seems to have
not validated anything and returend the default. Anyway this means we
need to use a default value that matches our input type and manipulate
it on the output end the same way we would normal input.
We make this update in order to use newer voluptuous which will be
required when we switch to python3.10.
Change-Id: I64d9c8ac1334971f2d1c82f19ea675022635dc37
This builds and publishes docker images to opendevorg/grafyaml
so that users can run this with "docker run ...".
Also, appease the pep8 gods.
Change-Id: Ia30438953e5c73a01ae0cd32afb660442e0e6e39
Added with dd6582e9cc, we have found
that setting a bool here means the query variable no longer refreshes
at all. Thus it's dangerous to accept it, force it to be an int.
For reference, the values seem to be
0 = never refresh
1 = on load
2 = on timeseries change
Change-Id: Ia96f0166a80ece0b307acdca20eeca045a2e4a75
the following patch will allow us to use datasource type in template schema.
Change-Id: I15cce5f8f97d1837b94eaa7067d7ebe8e449f8f4
Signed-off-by: Eldad Marciano <emarcian@redhat.com>
Allow custom templated vars. Custom templated vars are similiar to
interval templated vars in that they have "options" however they can be
multi-selected vs just a singular selection as with an interval var.
Change-Id: Ic89c5d192f87890da950a9d2d5f9bc4a96a3e174
This allows graphs tool tips to be limited by a decimal count.
Also fix forgotten validation on decimals setting specific to legends.
Change-Id: I5840b0081dbb17ead0c49fa7d6d6ba1a2e82bb7c
* data (Metric) decimal units - decbits - decgbytes
* More data rate units
* More thoughput units
See this Grafana Source:
https://git.io/vAOKi
Change-Id: I24dc028ae67d95ed82ee6908b668cbaa37bf8d9b
Default is 6h it seems. This change allows adjusting the default
to/from range in the time filter.
Change-Id: I567b9cc5cd8c753f852066c9e6868dd0f1b30b60
This change adds support for datasource option to:
* graph panel
* singlestat panel
* templating
This enables the user to use other datasource than the default datasource
for graph/singlestat panels and templating. It is useful when more
than one datasource are available in Grafana.
Change-Id: I2e81a2dc4658c530bf82c4b349e2991dad348b01
This commit adds the ability to configure the options in Time Range panel: time override, time shift and hide time override info.
Change-Id: I1d8c527ef1a377de6e34b94621f3060706356008
This performs some significant coercion because without it, the
interval template type, which should be very easy to use, would
require a substantial amount of yaml boilerplate.
Change-Id: I66ffe944af1b6794089dc536bfd99a1adf5d268e
A cool feature grafana has is the ability to template dashboards with
variables. This code now provides that ability to the user.
Change-Id: Ib2f565e3d39523105b2c07d29d5257494a8bae67
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is important for stacked graphs so that the tooltip can show
individual, rather than cumulative values (which makes the most
sense for our node graphs).
Also, sort the elements in the schema. I think keeping them all
in order makes more sense than required/optional sections.
Change-Id: Ie542dc4d0e151a00e84cc970c2cfa8c02377d7bf