2016-11-08 04:05:38 -06:00
|
|
|
+++
|
|
|
|
title = "What's New in Grafana v4.0"
|
2019-10-03 11:20:52 -05:00
|
|
|
description = "Feature and improvement highlights for Grafana v4.0"
|
2016-11-08 04:05:38 -06:00
|
|
|
keywords = ["grafana", "new", "documentation", "4.0"]
|
|
|
|
type = "docs"
|
|
|
|
[menu.docs]
|
2017-01-16 01:13:40 -06:00
|
|
|
name = "Version 4.0"
|
2016-11-08 04:05:38 -06:00
|
|
|
identifier = "v4.0"
|
|
|
|
parent = "whatsnew"
|
2017-01-17 07:56:11 -06:00
|
|
|
weight = 4
|
2016-11-08 04:05:38 -06:00
|
|
|
+++
|
|
|
|
|
|
|
|
# What's New in Grafana v4.0
|
|
|
|
|
|
|
|
As usual this release contains a ton of minor new features, fixes and improved UX. But on top of the usual new goodies
|
|
|
|
is a core new feature: Alerting! Read on below for a detailed description of what's new in v4.0.
|
|
|
|
|
|
|
|
## Alerting
|
|
|
|
|
|
|
|
{{< imgbox max-width="40%" img="/img/docs/v4/drag_handles_gif.gif" caption="Alerting overview" >}}
|
|
|
|
|
|
|
|
Alerting is a really revolutionary feature for Grafana. It transforms Grafana from a
|
|
|
|
visualization tool into a truly mission critical monitoring tool. The alert rules are very easy to
|
|
|
|
configure using your existing graph panels and threshold levels can be set simply by dragging handles to
|
|
|
|
the right side of the graph. The rules will continually be evaluated by grafana-server and
|
|
|
|
notifications will be sent out when the rule conditions are met.
|
|
|
|
|
|
|
|
This feature has been worked on for over a year with many iterations and rewrites
|
|
|
|
just to make sure the foundations are really solid. We are really proud to finally release it!
|
2017-03-26 19:27:19 -05:00
|
|
|
Since the alerting execution is processed in the backend not all data source plugins are supported.
|
2016-11-08 04:05:38 -06:00
|
|
|
Right now Graphite, Prometheus, InfluxDB and OpenTSDB are supported. Elasticsearch is being worked
|
|
|
|
on but will be not ready for v4 release.
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
### Rules
|
|
|
|
|
|
|
|
{{< imgbox max-width="40%" img="/img/docs/v4/alerting_conditions.png" caption="Alerting Conditions" >}}
|
|
|
|
|
|
|
|
The rule config allows you to specify a name, how often the rule should be evaluated and a series
|
|
|
|
of conditions that all need to be true for the alert to fire.
|
|
|
|
|
|
|
|
Currently the only condition type that exists is a `Query` condition that allows you to
|
|
|
|
specify a query letter, time range and an aggregation function. The letter refers to
|
|
|
|
a query you already have added in the **Metrics** tab. The result from the
|
|
|
|
query and the aggregation function is a single value that is then used in the threshold check.
|
|
|
|
|
|
|
|
We plan to add other condition types in the future, like `Other Alert`, where you can include the state
|
|
|
|
of another alert in your conditions, and `Time Of Day`.
|
|
|
|
|
|
|
|
### Notifications
|
|
|
|
|
|
|
|
{{< imgbox max-width="40%" img="/img/docs/v4/slack_notification.png" caption="Alerting Slack Notification" >}}
|
|
|
|
|
|
|
|
Alerting would not be very useful if there was no way to send notifications when rules trigger and change state. You
|
|
|
|
can setup notifications of different types. We currently have `Slack`, `PagerDuty`, `Email` and `Webhook` with more in the
|
|
|
|
pipe that will be added during beta period. The notifications can then be added to your alert rules.
|
2017-07-29 21:31:28 -05:00
|
|
|
If you have configured an external image store in the grafana.ini config file (s3, webdav, and azure_blob options available)
|
2016-11-08 04:05:38 -06:00
|
|
|
you can get very rich notifications with an image of the graph and the metric
|
|
|
|
values all included in the notification.
|
|
|
|
|
|
|
|
### Annotations
|
|
|
|
|
|
|
|
Alert state changes are recorded in a new annotation store that is built into Grafana. This store
|
|
|
|
currently only supports storing annotations in Grafana's own internal database (mysql, postgres or sqlite).
|
|
|
|
The Grafana annotation storage is currently only used for alert state changes but we hope to add the ability for users
|
|
|
|
to add graph comments in the form of annotations directly from within Grafana in a future release.
|
|
|
|
|
|
|
|
### Alert List Panel
|
|
|
|
|
|
|
|
{{< imgbox max-width="30%" img="/img/docs/v4/alert_list_panel.png" caption="Alert List Panel" >}}
|
|
|
|
|
2017-03-26 19:27:19 -05:00
|
|
|
This new panel allows you to show alert rules or a history of alert rule state changes. You can filter based on states you are
|
|
|
|
interested in. This panel is very useful for overview style dashboards.
|
2016-11-08 04:05:38 -06:00
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
## Ad-hoc filter variable
|
|
|
|
|
|
|
|
{{< imgbox max-width="30%" img="/img/docs/v4/adhoc_filters.gif" caption="Ad-hoc filters variable" >}}
|
|
|
|
|
2017-03-26 19:27:19 -05:00
|
|
|
This is a new and very different type of template variable. It will allow you to create new key/value filters on the fly
|
|
|
|
with autocomplete for both key and values. The filter condition will be automatically applied to all
|
2016-11-08 04:05:38 -06:00
|
|
|
queries that use that data source. This feature opens up more exploratory dashboards. In the gif animation to the right
|
|
|
|
you have a dashboard for Elasticsearch log data. It uses one query variable that allow you to quickly change how the data
|
|
|
|
is grouped, and an interval variable for controlling the granularity of the time buckets. What was missing
|
|
|
|
was a way to dynamically apply filters to the log query. With the `Ad-Hoc Filters` variable you can
|
|
|
|
dynamically add filters to any log property!
|
|
|
|
|
|
|
|
## UX Improvements
|
|
|
|
|
2019-10-03 11:20:52 -05:00
|
|
|
We always try to bring some UX/UI refinements and polish in every release.
|
2016-11-08 04:05:38 -06:00
|
|
|
|
2019-10-03 11:20:52 -05:00
|
|
|
### TV-mode and Kiosk mode
|
2016-11-08 04:05:38 -06:00
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="medium-6 columns">
|
|
|
|
<p>
|
|
|
|
Grafana is so often used on wall mounted TVs that we figured a clean TV mode would be
|
2019-10-03 11:20:52 -05:00
|
|
|
really nice. In TV mode the top navbar, row and panel controls will all fade to transparent.
|
2016-11-08 04:05:38 -06:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
This happens automatically after one minute of user inactivity but can also be toggled manually
|
|
|
|
with the <code>d v</code> sequence shortcut. Any mouse movement or keyboard action will
|
2019-10-03 11:20:52 -05:00
|
|
|
restore navbar and controls.
|
2016-11-08 04:05:38 -06:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Another feature is the kiosk mode. This can be enabled with <code>d k</code>
|
|
|
|
shortcut or by adding <code>&kiosk</code> to the URL when you load a dashboard.
|
|
|
|
In kiosk mode the navbar is completely hidden/removed from view.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="medium-6 columns">
|
|
|
|
{{< lightboxhelper max-width="100%" img="/img/docs/v4/tvmode.png" caption="TV mode" >}}
|
|
|
|
<video width="320" height="240" controls>
|
|
|
|
<source src="/assets/videos/tvmode.mp4" type="video/mp4">
|
|
|
|
Your browser does not support the video tag.
|
|
|
|
</video>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-10-03 11:20:52 -05:00
|
|
|
### New row menu and add panel experience
|
2016-11-08 04:05:38 -06:00
|
|
|
|
|
|
|
{{< imgbox max-width="50%" img="/img/docs/v4/add_panel.gif" caption="Add Panel flow" >}}
|
|
|
|
|
2017-03-26 19:27:19 -05:00
|
|
|
We spent a lot of time improving the dashboard building experience to make it both
|
2016-11-08 04:05:38 -06:00
|
|
|
more efficient and easier for beginners. After many good but not great experiments
|
|
|
|
with a `build mode` we eventually decided to just improve the green row menu and
|
|
|
|
continue work on a `build mode` for a future release.
|
|
|
|
|
|
|
|
The new row menu automatically slides out when you mouse over the edge of the row. You no longer need
|
2017-03-26 19:27:19 -05:00
|
|
|
to hover over the small green icon and then click it to expand the row menu.
|
2016-11-08 04:05:38 -06:00
|
|
|
|
2018-11-28 13:33:41 -06:00
|
|
|
There are some minor improvements to drag and drop behavior. Now when dragging a panel from one row
|
2016-11-08 04:05:38 -06:00
|
|
|
to another you will insert the panel and Grafana will automatically make room for it.
|
|
|
|
When you drag a panel within a row you will simply reorder the panels.
|
|
|
|
|
|
|
|
If you look at the animation to the right you can see that you can drag and drop a new panel. This is not
|
|
|
|
required, you can also just click the panel type and it will be inserted at the end of the row
|
|
|
|
automatically. Dragging a new panel has an advantage in that you can insert a new panel where ever you want
|
|
|
|
not just at the end of the row.
|
|
|
|
|
2019-10-03 11:20:52 -05:00
|
|
|
We plan to further improve dashboard building in the future with a more rich grid and layout system.
|
2016-11-08 04:05:38 -06:00
|
|
|
|
|
|
|
### Keyboard shortcuts
|
|
|
|
|
|
|
|
{{< imgbox max-width="40%" img="/img/docs/v4/shortcuts.png" caption="Shortcuts" >}}
|
|
|
|
|
|
|
|
Grafana v4 introduces a number of really powerful keyboard shortcuts. You can now focus a panel
|
2017-03-26 19:27:19 -05:00
|
|
|
by hovering over it with your mouse. With a panel focused you can simply hit `e` to toggle panel
|
2016-11-08 04:05:38 -06:00
|
|
|
edit mode, or `v` to toggle fullscreen mode. `p r` removes the panel. `p s` opens share
|
|
|
|
modal.
|
|
|
|
|
|
|
|
Some nice navigation shortcuts are:
|
|
|
|
|
|
|
|
- `g h` for go to home dashboard
|
|
|
|
- `s s` open search with starred pre-selected
|
|
|
|
- `s t` open search in tags list view
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
2019-10-03 11:20:52 -05:00
|
|
|
## Upgrade and Breaking changes
|
2016-11-08 04:05:38 -06:00
|
|
|
|
2017-03-26 19:27:19 -05:00
|
|
|
There are no breaking changes. Old dashboards and features should work the same. Grafana-server will automatically upgrade its db
|
2016-11-08 04:05:38 -06:00
|
|
|
schema on restart. It's advisable to do a backup of Grafana's database before updating.
|
|
|
|
|
2017-03-26 19:27:19 -05:00
|
|
|
If you are using plugins make sure to update your plugins as some might not work perfectly v4.
|
2016-11-08 04:05:38 -06:00
|
|
|
|
|
|
|
You can update plugins using grafana-cli
|
|
|
|
|
|
|
|
grafana-cli plugins update-all
|
|
|
|
|
|
|
|
## Changelog
|
|
|
|
|
2019-12-10 12:23:07 -06:00
|
|
|
Check out the [CHANGELOG.md](https://github.com/grafana/grafana/blob/master/CHANGELOG.md) file for a complete list
|
2016-11-08 04:05:38 -06:00
|
|
|
of new features, changes, and bug fixes.
|
|
|
|
|