2016-10-21 04:01:34 -05:00
|
|
|
+++
|
|
|
|
title = "What's New in Grafana v2.6"
|
2019-10-03 11:20:52 -05:00
|
|
|
description = "Feature and improvement highlights for Grafana v2.6"
|
2016-10-21 04:01:34 -05:00
|
|
|
keywords = ["grafana", "new", "documentation", "2.6"]
|
|
|
|
type = "docs"
|
|
|
|
+++
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
# What's new in Grafana v2.6
|
|
|
|
|
|
|
|
## Release highlights
|
|
|
|
The release includes a new Table panel, a new InfluxDB query editor, support for Elasticsearch Pipeline Metrics and
|
|
|
|
support for multiple Cloudwatch credentials.
|
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
## Table Panel
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/assets/img/features/table-panel.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
The new table panel is very flexible, supporting both multiple modes for time series as well as for
|
2018-04-13 13:02:45 -05:00
|
|
|
table, annotation and raw JSON data. It also provides date formatting and value formatting and coloring options.
|
2015-12-14 08:15:44 -06:00
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
### Time series to rows
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
In the most simple mode you can turn time series to rows. This means you get a `Time`, `Metric` and a `Value` column.
|
|
|
|
Where `Metric` is the name of the time series.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/img/docs/v2/table_ts_to_rows.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
### Table Transform
|
2015-12-14 08:15:44 -06:00
|
|
|
Above you see the options tab for the **Table Panel**. The most important option is the `To Table Transform`.
|
|
|
|
This option controls how the result of the metric/data query is turned into a table.
|
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
### Column Styles
|
2015-12-14 08:15:44 -06:00
|
|
|
The column styles allow you control how dates and numbers are formatted.
|
|
|
|
|
|
|
|
### Time series to columns
|
|
|
|
This transform allows you to take multiple time series and group them by time. Which will result in a `Time` column
|
|
|
|
and a column for each time series.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/img/docs/v2/table_ts_to_columns.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
In the screenshot above you can see how the same time series query as in the previous example can be transformed into
|
|
|
|
a different table by changing the `To Table Transform` to `Time series to columns`.
|
|
|
|
|
|
|
|
### Time series to aggregations
|
|
|
|
This transform works very similar to the legend values in the Graph panel. Each series gets its own row. In the Options
|
|
|
|
tab you can select which aggregations you want using the plus button the Columns section.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/img/docs/v2/table_ts_to_aggregations.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
You have to think about how accurate the aggregations will be. It depends on what aggregation is used in the time series query,
|
|
|
|
how many data points are fetched, etc. The time series aggregations are calculated by Grafana after aggregation is performed
|
|
|
|
by the time series database.
|
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
### Raw logs queries
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
If you want to show documents from Elasticsearch pick `Raw Document` as the first metric.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/img/docs/v2/elastic_raw_doc.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
This in combination with the `JSON Data` table transform will allow you to pick which fields in the document
|
|
|
|
you want to show in the table.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/img/docs/v2/table_json_data.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
### Elasticsearch aggregations
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
You can also make Elasticsearch aggregation queries without a `Date Histogram`. This allows you to
|
|
|
|
use Elasticsearch metric aggregations to get accurate aggregations for the selected time range.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/img/docs/v2/elastic_aggregations.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
### Annotations
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
The table can also show any annotations you have enabled in the dashboard.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/img/docs/v2/table_annotations.png">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
## The New InfluxDB Editor
|
2015-12-14 08:15:44 -06:00
|
|
|
The new InfluxDB editor is a lot more flexible and powerful. It supports nested functions, like `derivative`.
|
|
|
|
It also uses the same technique as the Graphite query editor in that it presents nested functions as chain of function
|
|
|
|
transformations. It tries to simplify and unify the complicated nature of InfluxDB's query language.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/assets/img/blog/v2.6/influxdb_editor_v3.gif">
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
In the `SELECT` row you can specify what fields and functions you want to use. If you have a
|
|
|
|
group by time you need an aggregation function. Some functions like derivative require an aggregation function.
|
|
|
|
|
|
|
|
The editor tries simplify and unify this part of the query. For example:
|
2016-10-21 04:01:34 -05:00
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
![](/img/docs/influxdb/select_editor.png)
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
The above will generate the following InfluxDB `SELECT` clause:
|
|
|
|
|
|
|
|
```sql
|
|
|
|
SELECT derivative(mean("value"), 10s) /10 AS "REQ/s" FROM ....
|
|
|
|
```
|
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
### Select multiple fields
|
2015-12-14 08:15:44 -06:00
|
|
|
Use the plus button and select Field > field to add another SELECT clause. You can also
|
2015-12-14 08:45:00 -06:00
|
|
|
specify an asterix `*` to select all fields.
|
2015-12-14 08:15:44 -06:00
|
|
|
|
|
|
|
### Group By
|
|
|
|
To group by a tag click the plus icon at the end of the GROUP BY row. Pick a tag from the dropdown that appears.
|
|
|
|
You can remove the group by by clicking on the `tag` and then click on the x icon.
|
|
|
|
|
|
|
|
The new editor also allows you to remove group by time and select `raw` table data. Which is very useful
|
|
|
|
in combination with the new Table panel to show raw log data stored in InfluxDB.
|
|
|
|
|
2016-11-04 14:29:17 -05:00
|
|
|
<img src="/assets/img/blog/v2.6/table_influxdb_logs.png">
|
2015-12-14 08:45:00 -06:00
|
|
|
|
|
|
|
## Pipeline metrics
|
|
|
|
|
|
|
|
If you have Elasticsearch 2.x and Grafana 2.6 or above then you can use pipeline metric aggregations like
|
|
|
|
**Moving Average** and **Derivative**. Elasticsearch pipeline metrics require another metric to be based on. Use the eye icon next to the metric
|
2015-12-15 01:29:24 -06:00
|
|
|
to hide metrics from appearing in the graph.
|
2015-12-14 08:15:44 -06:00
|
|
|
|
2016-10-21 04:01:34 -05:00
|
|
|
![](/img/docs/elasticsearch/pipeline_metrics_editor.png)
|
2015-12-14 08:15:44 -06:00
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
## Changelog
|
|
|
|
For a detailed list and link to github issues for everything included in the 2.6 release please
|
2015-12-14 08:15:44 -06:00
|
|
|
view the [CHANGELOG.md](https://github.com/grafana/grafana/blob/master/CHANGELOG.md) file.
|
|
|
|
|
|
|
|
- - -
|
|
|
|
|
2015-12-14 08:45:00 -06:00
|
|
|
<a href="http://grafana.org/download">Download Grafana 2.6 now</a>
|
2015-12-14 08:15:44 -06:00
|
|
|
|