Commit Graph

21 Commits

Author SHA1 Message Date
Ian Wienand 5463ff095e Add tooltip sort
You can sort the tooltips in descending (1) or ascending (2) order.

Change-Id: I931419f832b6fd4a537431e34c099e5f2884d4c2
2018-09-14 16:21:25 +10:00
Ian Wienand c82c2b8ef7 Add alerts to graphs
Graphs can setup alerts.  Add a basic framework for them.

Change-Id: I6a80041eaaa03a3b3ff3e3de76401bbc77f42e96
2018-06-12 13:04:25 +10:00
Eldad Marciano f1c684c1c2 Support formatting.
Adding format to schema base panel, in order to use graph unit e.g
bytes, precent, deckbytes etc.

Change-Id: I754596738970177bb70c5425d38e1291c56c84a9
2018-03-12 18:07:12 +02:00
Zuul 8a525a916e Merge "Add more units for graph panel" 2018-02-16 20:05:31 +00:00
Zuul 07e6ff97a2 Merge "Allow decimals to be specificed to limit decimals graphs" 2018-02-16 20:05:26 +00:00
Zuul e951216fc6 Merge "Allow repeating panels and to set minspan" 2018-02-16 20:05:24 +00:00
akrzos af54eb4eb1 Allow repeating panels and to set minspan
This allows dashboards that expand a templated var to multi-graphs

Change-Id: I9b78958d836bbd4f73b06d6c302124857863c3d2
2018-02-16 09:50:37 -05:00
akrzos 2c68efbb69 Allow decimals to be specificed to limit decimals graphs
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
2018-02-16 09:50:00 -05:00
akrzos 9faec6b923 Add more units for graph panel
* data (Metric) decimal units - decbits - decgbytes
* More data rate units
* More thoughput units

See this Grafana Source:
https://git.io/vAOKi

Change-Id: I24dc028ae67d95ed82ee6908b668cbaa37bf8d9b
2018-02-16 09:48:24 -05:00
Fabien Boucher 28bbece7ae Unlock yaxes min limit and allow free value
Change-Id: Id942bfc9e06ad2b78bb8243ac06a089f6f2ab074
2018-02-16 14:27:31 +00:00
akrzos f4b52386cc Add yaxes format for newer versions of Grafana
y_formats has moved to yaxes, but still support y_formats

Change-Id: Iabd1302352c77dc82c543412596e21550e4c0579
2018-02-08 09:15:09 -05:00
akrzos 96cf8f97d4 Add legend for graphs
Simple support for a legend on graphs.

Change-Id: I3dc96a1463a8e765b9c97fa2fd1550872d7a285f
2018-01-09 11:33:48 -05: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
Ye Na Rhee a38798a292 Enable no fill in seriesOverrides
This allows fill to take the minimum value of 0.

Change-Id: I4c3a37fcfd6de24332ee05ca0d897e6d4973c525
2016-04-17 22:04:45 +02:00
James E. Blair 187caf92d7 Add support for seriesOverrides
Reference: https://github.com/grafana/grafana/blob/master/public/app/plugins/panels/graph/seriesOverridesCtrl.js#L94

Change-Id: I22743f566b32aaa5527237dd023551a8f3a3dbc4
2016-01-08 14:46:21 -08:00
James E. Blair cdc1df0e27 Add tooltip customization support
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
2016-01-07 14:15:47 -08:00
James E. Blair 36682378fc Add support for nullPointMode
Change-Id: Iedc5eec1ad06498a191b342cc70ce4424741e16f
2016-01-07 14:07:26 -08:00
James E. Blair 17e53a824d Add support for Y axis formats
The list of valid formats is taken from:
  https://github.com/grafana/grafana/blob/master/public/app/core/utils/kbn.js

(grep "value:" in that file).

Change-Id: Ibe7317847beba3db3205d759fbf6492e005b128f
2016-01-06 11:54:48 -08:00
James E. Blair ff88ef29e2 Add support for Y axis labels
Change-Id: I42ff3fa12fbb792b2544e0697c3ab87b0768e82d
2016-01-06 11:16:08 -08: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