Skip to content

Commit a05d694

Browse files
committed
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2 parents 6220dec + 45a1565 commit a05d694

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1664
-189
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# 5.2.0 (unreleased)
22

3+
# 5.2.0-beta1 (2018-06-05)
4+
35
### New Features
46

57
* **Elasticsearch**: Alerting support [#5893](https://github.com/grafana/grafana/issues/5893), thx [@WPH95](https://github.com/WPH95)
8+
* **Login**: Change admin password after first login [#11882](https://github.com/grafana/grafana/issues/11882)
69
* **Alert list panel**: Updated to support filtering alerts by name, dashboard title, folder, tags [#11500](https://github.com/grafana/grafana/issues/11500), [#8168](https://github.com/grafana/grafana/issues/8168), [#6541](https://github.com/grafana/grafana/issues/6541)
710

811
### Minor
@@ -30,6 +33,12 @@
3033
* **Singlestat**: Fix singlestat threshold tooltip [#11971](https://github.com/grafana/grafana/issues/11971)
3134
* **Dashboard**: Hide grid controls in fullscreen/low-activity views [#11771](https://github.com/grafana/grafana/issues/11771)
3235
* **Dashboard**: Validate uid when importing dashboards [#11515](https://github.com/grafana/grafana/issues/11515)
36+
* **Docker**: Support for env variables ending with _FILE [grafana-docker #166](https://github.com/grafana/grafana-docker/pull/166), thx [@efrecon](https://github.com/efrecon)
37+
* **Alert list panel**: Show alerts for user with viewer role [#11167](https://github.com/grafana/grafana/issues/11167)
38+
* **Provisioning**: Verify checksum of dashboards before updating to reduce load on database [#11670](https://github.com/grafana/grafana/issues/11670)
39+
* **Provisioning**: Support symlinked files in dashboard provisioning config files [#11958](https://github.com/grafana/grafana/issues/11958)
40+
* **Dashboard list panel**: Search dashboards by folder [#11525](https://github.com/grafana/grafana/issues/11525)
41+
* **Sidenav**: Always show server admin link in sidenav if grafana admin [#11657](https://github.com/grafana/grafana/issues/11657)
3342

3443
# 5.1.3 (2018-05-16)
3544

Gopkg.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ignored = [
100100
version = "1.1.1"
101101

102102
[[constraint]]
103-
branch = "renderer"
103+
branch = "master"
104104
name = "github.com/grafana/grafana-plugin-model"
105105

106106
[[constraint]]

devenv/dashboards/bulk-testing/bulkdash.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,4 +1137,4 @@
11371137
"title": "Big Dashboard",
11381138
"uid": "000000003",
11391139
"version": 16
1140-
}
1140+
}

devenv/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ bulkDashboard() {
88
MAX=400
99
while [ $COUNTER -lt $MAX ]; do
1010
jsonnet -o "dashboards/bulk-testing/dashboard${COUNTER}.json" -e "local bulkDash = import 'dashboards/bulk-testing/bulkdash.jsonnet'; bulkDash + { uid: 'uid-${COUNTER}', title: 'title-${COUNTER}' }"
11-
let COUNTER=COUNTER+1
11+
let COUNTER=COUNTER+1
1212
done
1313

1414
ln -s -f -r ./dashboards/bulk-testing/bulk-dashboards.yaml ../conf/provisioning/dashboards/custom.yaml
@@ -58,4 +58,4 @@ main() {
5858
fi
5959
}
6060

61-
main "$@"
61+
main "$@"

docs/sources/administration/provisioning.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ providers:
197197
folder: ''
198198
type: file
199199
disableDeletion: false
200+
updateIntervalSeconds: 3 #how often Grafana will scan for changed dashboards
200201
options:
201202
path: /var/lib/grafana/dashboards
202203
```
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
+++
2+
title = "What's New in Grafana v5.2"
3+
description = "Feature & improvement highlights for Grafana v5.2"
4+
keywords = ["grafana", "new", "documentation", "5.2"]
5+
type = "docs"
6+
[menu.docs]
7+
name = "Version 5.2"
8+
identifier = "v5.2"
9+
parent = "whatsnew"
10+
weight = -8
11+
+++
12+
13+
# What's New in Grafana v5.2
14+
15+
Grafana v5.2 brings new features, many enhancements and bug fixes. This article will detail the major new features and enhancements.
16+
17+
* [Elasticsearch alerting]({{< relref "#elasticsearch-alerting" >}}) it's finally here!
18+
* [Cross platform build support]({{< relref "#cross-platform-build-support" >}}) enables native builds of Grafana for many more platforms!
19+
* [Improved Docker image]({{< relref "#improved-docker-image" >}}) with support for docker secrets
20+
* [Prometheus]({{< relref "#prometheus" >}}) with alignment enhancements
21+
* [Alerting]({{< relref "#alerting" >}}) with alert notification channel type for Discord
22+
* [Dashboards & Panels]({{< relref "#dashboards-panels" >}})
23+
24+
## Elasticsearch alerting
25+
26+
{{< docs-imagebox img="/img/docs/v52/elasticsearch_alerting.png" max-width="800px" class="docs-image--right" >}}
27+
28+
Grafana v5.2 ships with an updated Elasticsearch datasource with support for alerting. Alerting support for Elasticsearch has been one of
29+
the most requested features by our community and now it's finally here. Please try it out and let us know what you think.
30+
31+
<div class="clearfix"></div>
32+
33+
## Cross platform build support
34+
35+
Grafana v5.2 brings an improved build pipeline with cross platform support. This enables native builds of Grafana for ARMv7 (x32), ARM64 (x64),
36+
MacOS/Darwin (x64) and Windows (x64) in both stable and nightly builds.
37+
38+
We've been longing for native ARM build support for a long time. With the help from our amazing community this is now finally available.
39+
40+
## Improved Docker image
41+
42+
The Grafana docker image now includes support for Docker secrets which enables you to supply Grafana with configuration through files. More
43+
information in the [Installing using Docker documentation](/installation/docker/#reading-secrets-from-files-support-for-docker-secrets).
44+
45+
## Prometheus
46+
47+
The Prometheus datasource now aligns the start/end of the query sent to Prometheus with the step, which ensures PromQL expressions with *rate*
48+
functions get consistent results, and thus avoid graphs jumping around on reload.
49+
50+
## Alerting
51+
52+
By popular demand Grafana now includes support for an alert notification channel type for [Discord](https://discordapp.com/).
53+
54+
## Dashboards & Panels
55+
56+
### Modified time range and variables are no longer saved by default
57+
58+
{{< docs-imagebox img="/img/docs/v52/dashboard_save_modal.png" max-width="800px" class="docs-image--right" >}}
59+
60+
Starting from Grafana v5.2 a modified time range or variable are no longer saved by default. To save a modified
61+
time range or variable you'll need to actively select that when saving a dashboard, see screenshot.
62+
This should hopefully make it easier to have sane defaults of time and variables in dashboards and make it more explicit
63+
when you actually want to overwrite those settings.
64+
65+
<div class="clearfix"></div>
66+
67+
## Changelog
68+
69+
Checkout the [CHANGELOG.md](https://github.com/grafana/grafana/blob/master/CHANGELOG.md) file for a complete list
70+
of new features, changes, and bug fixes.

docs/sources/installation/configuration.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -419,25 +419,33 @@ allowed_organizations = github google
419419

420420
## [auth.google]
421421

422-
You need to create a Google project. You can do this in the [Google
423-
Developer Console](https://console.developers.google.com/project). When
424-
you create the project you will need to specify a callback URL. Specify
425-
this as callback:
422+
First, you need to create a Google OAuth Client:
426423

427-
```bash
428-
http://<my_grafana_server_name_or_ip>:<grafana_server_port>/login/google
429-
```
424+
1. Go to https://console.developers.google.com/apis/credentials
430425

431-
This callback URL must match the full HTTP address that you use in your
432-
browser to access Grafana, but with the prefix path of `/login/google`.
433-
When the Google project is created you will get a Client ID and a Client
434-
Secret. Specify these in the Grafana configuration file. For example:
426+
2. Click the 'Create Credentials' button, then click 'OAuth Client ID' in the
427+
menu that drops down
428+
429+
3. Enter the following:
430+
431+
- Application Type: Web Application
432+
- Name: Grafana
433+
- Authorized Javascript Origins: https://grafana.mycompany.com
434+
- Authorized Redirect URLs: https://grafana.mycompany.com/login/google
435+
436+
Replace https://grafana.mycompany.com with the URL of your Grafana instance.
437+
438+
4. Click Create
439+
440+
5. Copy the Client ID and Client Secret from the 'OAuth Client' modal
441+
442+
Specify the Client ID and Secret in the Grafana configuration file. For example:
435443

436444
```bash
437445
[auth.google]
438446
enabled = true
439-
client_id = YOUR_GOOGLE_APP_CLIENT_ID
440-
client_secret = YOUR_GOOGLE_APP_CLIENT_SECRET
447+
client_id = CLIENT_ID
448+
client_secret = CLIENT_SECRET
441449
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
442450
auth_url = https://accounts.google.com/o/oauth2/auth
443451
token_url = https://accounts.google.com/o/oauth2/token

docs/sources/installation/docker.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,20 @@ ID=$(id -u) # saves your user id in the ID variable
130130
docker run -d --user $ID --volume "$PWD/data:/var/lib/grafana" -p 3000:3000 grafana/grafana:5.1.0
131131
```
132132

133+
## Reading secrets from files (support for Docker Secrets)
134+
135+
> Available in v5.2.0 and later
136+
137+
It's possible to supply Grafana with configuration through files. This works well with [Docker Secrets](https://docs.docker.com/engine/swarm/secrets/) as the secrets by default gets mapped into `/run/secrets/<name of secret>` of the container.
138+
139+
You can do this with any of the configuration options in conf/grafana.ini by setting `GF_<SectionName>_<KeyName>_FILE` to the path of the file holding the secret.
140+
141+
Let's say you want to set the admin password this way.
142+
143+
- Admin password secret: `/run/secrets/admin_password`
144+
- Environment variable: `GF_SECURITY_ADMIN_PASSWORD_FILE=/run/secrets/admin_password`
145+
146+
133147
## Migration from a previous version of the docker container to 5.1 or later
134148

135149
The docker container for Grafana has seen a major rewrite for 5.1.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
"moment": "^2.18.1",
158158
"mousetrap": "^1.6.0",
159159
"mousetrap-global-bind": "^1.1.0",
160+
"papaparse": "^4.4.0",
160161
"prismjs": "^1.6.0",
161162
"prop-types": "^15.6.0",
162163
"react": "^16.2.0",

0 commit comments

Comments
 (0)