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
I was trying to figure out how to do multiple target calculations with
hidden targets. I didn't see this explicitly tested for, so add it.
Change-Id: Ibbbb2810dd531e792f11c07946c21829fcdbe0a1
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
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
This also fixes a bug with our valueName field in a singlestat panel.
Change-Id: I4df8d130fce45cf58b01808997fc561cf8c4b42d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We also allow the user to override the setting to browser as well.
Change-Id: Id7ebdc3140d8fc50d0e70876fa2341a102821e1f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We are adding support for the following fields:
decimals
postfix
postfixFontSize
prefix
prefixFontSize
valueFontSize
Change-Id: I45c8d953ae6847a078a7d2c916d1ddc189bcfb1a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We now support the ability to create a datasource using yaml files.
Change-Id: I1db38ac25bc309398924c15635ea5dee4eaf264c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Like JJB, Zuul and Nodepool, we need to have a CLI command to validate
our configuration files.
Change-Id: I4ccac21a2d77917667e1e844ab9ee1f1f281ea9f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Like we do with JJB, we create a md5sum of the dashboard then cache
it. This is a simple way to determine if a yaml file has changed.
Change-Id: If7b80b84c5bbcb0d30b0325bae6b8e726bb2f41b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>