Commit Graph

7 Commits

Author SHA1 Message Date
Ian Wienand 53fea97346 Update valueName values
Over time there are more possible valueName options; this is taken
directly from the current list [1]

[1] 67d0bca3cb/public/app/plugins/panel/singlestat/module.ts (L24)

Change-Id: I010d5360ea7704af376a384330e1fc2e512e4c9a
2019-02-22 09:13:11 +11:00
Ian Wienand e6c7095c6b Add valueMaps and rangeMaps support
These allow you to specify custom text instead of displayed values

Change-Id: I7e5c6067c0b0d26edc18120283bad30887df0663
2019-02-21 10:06:35 +11:00
Eldad Marciano 08b4520efb Add gauge caps for singlestat panel.
Change-Id: Ic87e610cff0f2389464f8d744d7853a369939dc6
2018-03-12 19:03:01 +02:00
Ye Na Rhee f89102bbf9 Add datasource option to more elements
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
2016-08-11 20:19:12 -04:00
Ye Na Rhee 3b01b4df7d Add support for time range
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
2016-04-20 21:18:54 +02:00
Paul Belanger 3b5ba508f7 Add unit test coverage for panels
This also fixes a bug with our valueName field in a singlestat panel.

Change-Id: I4df8d130fce45cf58b01808997fc561cf8c4b42d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-16 11:06:06 -05:00
Paul Belanger 7a84b4e064 Refactor Panel class
A follow up patch will be adding better code coverage on Panels.
Actually validating the values of our fields.  To do that, we first
need to split out the logic to be better consumed.

Change-Id: I9e4ca5b90075b860788eed131eefd03c446a010b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-16 11:06:04 -05:00