grafana/docs/sources/whatsnew/whats-new-in-v6-0.md

175 lines
11 KiB
Markdown
Raw Normal View History

2019-01-28 11:43:41 -06:00
+++
2020-02-11 12:35:44 -06:00
title = "What's new in Grafana v6.0"
description = "Feature and improvement highlights for Grafana v6.0"
2020-02-11 12:35:44 -06:00
keywords = ["grafana", "new", "documentation", "6.0", "release notes"]
aliases = ["/docs/grafana/latest/guides/whats-new-in-v6-0/"]
weight = -19
[_build]
list = false
2019-01-28 11:43:41 -06:00
+++
2020-02-11 12:35:44 -06:00
# What's new in Grafana v6.0
2019-01-28 11:43:41 -06:00
2019-02-26 13:34:49 -06:00
This update to Grafana introduces a new way of exploring your data, support for log data, and tons of other features.
2019-01-28 11:43:41 -06:00
The main highlights are:
2019-01-30 10:28:43 -06:00
- [Explore]({{< relref "#explore" >}}) - A new query focused workflow for ad-hoc data exploration and troubleshooting.
- [Grafana Loki]({{< relref "#explore-and-grafana-loki" >}}) - Integration with the new open source log aggregation system from Grafana Labs.
- [Gauge Panel]({{< relref "#gauge-panel" >}}) - A new standalone panel for gauges.
2019-01-30 11:52:40 -06:00
- [New Panel Editor UX]({{< relref "#new-panel-editor" >}}) improves panel editing
2019-01-30 10:28:43 -06:00
and enables easy switching between different visualizations.
- [Google Stackdriver data source]({{< relref "#google-stackdriver-data-source" >}}) is out of beta and is officially released.
- [Azure Monitor]({{< relref "#azure-monitor-data-source" >}}) plugin is ported from being an external plugin to be a core data source
2019-01-30 10:28:43 -06:00
- [React Plugin]({{< relref "#react-panels-query-editors" >}}) support enables an easier way to build plugins.
2019-01-31 00:47:44 -06:00
- [Named Colors]({{< relref "#named-colors" >}}) in our new improved color picker.
2019-02-26 13:34:49 -06:00
- [Removal of user session storage]({{< relref "#easier-to-deploy-improved-security" >}}) makes Grafana easier to deploy and improves security.
2019-01-28 11:43:41 -06:00
## Explore
2019-01-28 11:43:41 -06:00
{{< docs-imagebox img="/img/docs/v60/explore_prometheus.png" max-width="800px" class="docs-image--right" caption="Screenshot of the new Explore option in the panel menu" >}}
2019-01-28 11:43:41 -06:00
Grafana's dashboard UI is all about building dashboards for visualization. **Explore** strips away all the dashboard and panel options so that you can focus on the query and metric exploration. Iterate until you have a working query and then think about building a dashboard. You can also jump from a dashboard panel into **Explore** and from there do some ad-hoc query exploration with the panel queries as a starting point.
2019-01-28 11:43:41 -06:00
For infrastructure monitoring and incident response, you no longer need to switch to other tools to debug what went wrong. **Explore** allows you to dig deeper into your metrics and logs to find the cause. Grafana's new logging data source, [Loki](https://github.com/grafana/loki) is tightly integrated into Explore and allows you to correlate metrics and logs by viewing them side-by-side.
2019-01-28 11:43:41 -06:00
2019-01-30 07:44:35 -06:00
**Explore** is a new paradigm for Grafana. It creates a new interactive debugging workflow that integrates two pillars
of observability—metrics and logs. Explore works with every data source but for Prometheus we have customized the
2019-01-30 09:15:56 -06:00
query editor and the experience to provide the best possible exploration UX.
2019-01-28 11:43:41 -06:00
2019-01-30 10:28:43 -06:00
### Explore and Prometheus
2019-01-28 11:43:41 -06:00
Explore features a new [Prometheus query editor](/explore/#prometheus-specific-features). This new editor has improved autocomplete, metric tree selector,
2019-02-26 13:34:49 -06:00
integrations with the Explore table view for easy label filtering, and useful query hints that can automatically apply
2019-01-30 07:44:35 -06:00
functions to your query. There is also integration between Prometheus and Grafana Loki (see more about Loki below) that
enabled jumping between metrics query and logs query with preserved label filters.
2019-01-28 11:43:41 -06:00
### Explore splits
Explore supports splitting the view so you can compare different queries, different data sources and metrics and logs side by side!
{{< docs-imagebox img="/img/docs/v60/explore_split.png" max-width="800px" caption="Screenshot of the new Explore option in the panel menu" >}}
2019-01-30 10:28:43 -06:00
<br />
2019-01-28 11:43:41 -06:00
### Explore and Grafana Loki
The log exploration and visualization features in Explore are available to any data source but are currently only implemented by the new open source log
aggregation system from Grafana Lab called [Grafana Loki](https://github.com/grafana/loki).
2019-01-28 11:43:41 -06:00
Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective, as it does not index the contents of the logs, but rather a set of labels for each log stream. The logs from Loki are queried in a similar way to querying with label selectors in Prometheus. It uses labels to group log streams which can be made to match up with your Prometheus labels.
2019-01-28 11:43:41 -06:00
For more information about Grafana Loki, refer to [Github Grafana Loki](https://github.com/grafana/loki) or [Grafana Labs hosted Loki](https://grafana.com/loki).
2019-01-28 11:43:41 -06:00
2019-01-30 07:17:34 -06:00
The Explore feature allows you to query logs and features a new log panel. In the near future, we will be adding support
for other log sources to Explore and the next planned integration is Elasticsearch.
2019-01-28 11:43:41 -06:00
2019-01-30 09:51:59 -06:00
<div class="medium-6 columns">
<video width="800" height="500" controls>
<source src="/assets/videos/explore_loki.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
2019-01-28 11:43:41 -06:00
2019-01-30 10:28:43 -06:00
<br />
2019-01-30 07:17:34 -06:00
## New Panel Editor
2019-01-30 07:17:34 -06:00
Grafana v6.0 has a completely redesigned UX around editing panels. You can now resize the visualization area if you want
2019-02-26 13:34:49 -06:00
more space for queries/options and vice versa. You can now also change visualization (panel type) from within the new
panel edit mode. No need to add a new panel to try out different visualizations! Check out the
2019-01-30 07:17:34 -06:00
video below to see the new Panel Editor in action.
2019-01-28 11:43:41 -06:00
2019-01-30 04:09:45 -06:00
<div class="medium-6 columns">
2019-01-30 07:17:34 -06:00
<video width="800" height="500" controls>
<source src="/assets/videos/panel_change_viz.mp4" type="video/mp4">
2019-01-30 04:09:45 -06:00
Your browser does not support the video tag.
</video>
2019-01-30 07:17:34 -06:00
</div>
<br>
### Gauge Panel
2019-01-30 09:15:56 -06:00
We have created a new separate Gauge panel as we felt having this visualization be a hidden option in the Singlestat panel
2019-02-26 13:34:49 -06:00
was not ideal. When it supports 100% of the Singlestat Gauge features, we plan to add a migration so all
2019-01-30 07:17:34 -06:00
singlestats that use it become Gauge panels instead. This new panel contains a new **Threshold** editor that we will
continue to refine and start using in other panels.
{{< docs-imagebox img="/img/docs/v60/gauge_panel.png" max-width="600px" caption="Gauge Panel" >}}
<br>
### React Panels and Query Editors
2019-01-30 07:17:34 -06:00
A major part of all the work that has gone into Grafana v6.0 has been on the migration to React. This investment
2019-02-26 13:34:49 -06:00
is part of the future-proofing of Grafana's code base and ecosystem. Starting in v6.0 **Panels** and **Data
2019-01-30 07:17:34 -06:00
source** plugins can be written in React using our published `@grafana/ui` sdk library. More information on this
2019-02-25 12:25:47 -06:00
will be shared soon.
2019-01-30 07:17:34 -06:00
{{< docs-imagebox img="/img/docs/v60/react_panels.png" max-width="600px" caption="React Panel" >}}
2019-01-31 00:47:44 -06:00
<br />
2019-01-30 04:09:45 -06:00
## Google Stackdriver data source
2019-01-28 11:43:41 -06:00
Built-in support for [Google Stackdriver](https://cloud.google.com/stackdriver/) is officially released in Grafana 6.0. Beta support was added in Grafana 5.3 and we have added lots of improvements since then.
To get started read the guide: [Using Google Stackdriver in Grafana]({{< relref "../datasources/cloudmonitoring/" >}}).
2019-01-28 11:43:41 -06:00
## Azure Monitor data source
2019-01-28 11:43:41 -06:00
One of the goals of the Grafana v6.0 release is to add support for the three major clouds. Amazon CloudWatch has been a core data source for years and Google Stackdriver is also now supported. We developed an external plugin for Azure Monitor last year and for this release the [plugin](https://grafana.com/plugins/grafana-azure-monitor-datasource) is being moved into Grafana to be one of the built-in data sources. For users of the external plugin, Grafana will automatically start using the built-in version. As a core data source, the Azure Monitor data source is able to get alerting support, in the 6.0 release alerting is supported for the Azure Monitor service, with the rest to follow.
2019-01-28 11:43:41 -06:00
The Azure Monitor data source integrates four Azure services with Grafana - Azure Monitor, Azure Log Analytics, Azure Application Insights and Azure Application Insights Analytics.
2019-01-28 11:43:41 -06:00
Please read [Using Azure Monitor in Grafana documentation]({{< relref "../datasources/azuremonitor/" >}}) for more detailed information on how to get started and use it.
## Provisioning support for alert notifiers
2019-02-26 13:34:49 -06:00
Grafana now has support for provisioning alert notifiers from configuration files, allowing operators to provision notifiers without using the UI or the API. A new field called `uid` has been introduced which is a string identifier that the administrator can set themselves. This is the same kind of identifier used for dashboards since v5.0. This feature makes it possible to use the same notifier configuration in multiple environments and refer to notifiers in dashboard json by a string identifier instead of the numeric id which depends on insert order and how many notifiers exist in the instance.
## Easier to deploy and improved security
2019-01-30 04:15:04 -06:00
2019-02-26 13:34:49 -06:00
Grafana 6.0 removes the need to configure and set up additional storage for [user sessions](/tutorials/ha_setup/#user-sessions). This should make it easier to deploy and operate Grafana in a
high availability setup and/or if you're using a stateless user session store like Redis, Memcache, Postgres or MySQL.
2019-01-30 03:52:42 -06:00
2019-02-26 13:34:49 -06:00
Instead of user sessions, we've implemented a solution based on short-lived tokens that are rotated frequently. This also replaces the old "remember me cookie"
solution, which allowed a user to be logged in between browser sessions and which have been subject to several security holes throughout the years.
For more information about the short-lived token solution and how to configure it, refer to [short lived token](/auth/overview/#login-and-short-lived-tokens).
2019-01-30 03:52:42 -06:00
> Please note that due to these changes, all users will be required to login upon next visit after upgrade.
2019-02-15 04:31:29 -06:00
Besides these changes we have also made security improvements regarding Cross-Site Request Forgery (CSRF) and Cross-site Scripting (XSS) vulnerabilities:
- Cookies are per default using the [SameSite](/administration/configuration/#cookie-samesite) attribute to protect against CSRF attacks
- Script tags in text panels are per default [disabled](/administration/configuration/#disable-sanitize-html) to protect against XSS attacks
> **Note:** If you're using [Auth Proxy Authentication](/auth/auth-proxy/) you still need to have user sessions set up and configured
2019-02-26 13:34:49 -06:00
but our goal is to remove this requirement in the near future.
## Named Colors
2019-01-31 00:47:44 -06:00
{{< docs-imagebox img="/img/docs/v60/named_colors.png" max-width="400px" class="docs-image--right" caption="Named Colors" >}}
We have updated the color picker to show named colors and primary colors. We hope this will improve accessibility and
2019-02-26 13:34:49 -06:00
helps making colors more consistent across dashboards. We hope to do more in this color picker in the future, like showing
2019-01-31 00:47:44 -06:00
colors used in the dashboard.
Named colors also enables Grafana to adapt colors to the current theme.
<div class="clearfix"></div>
## Other features
2019-01-29 17:25:32 -06:00
- The ElasticSearch data source now supports [bucket script pipeline aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html). This gives the ability to do per-bucket computations like the difference or ratio between two metrics.
2019-01-29 17:25:32 -06:00
- Support for Google Hangouts Chat alert notifications
2019-01-31 00:47:44 -06:00
- New built in template variables for the current time range in `$__from` and `$__to`
2019-01-29 17:25:32 -06:00
## Upgrading
See [upgrade notes](/installation/upgrading/#upgrading-to-v6-0).
2019-01-28 11:43:41 -06:00
## Changelog
Check out the [CHANGELOG.md](https://github.com/grafana/grafana/blob/master/CHANGELOG.md) file for a complete list of new features, changes, and bug fixes.