Skip to content

Commit 6cd83e1

Browse files
committed
Merge branch 'master' into alerting_reminder
* master: (84 commits) docs: adds info about grafana-dev container changelog: add notes about closing grafana#12282 Added Litre/min and milliLitre/min in Flow (grafana#12282) remove papaparse dependency list name is deleteDatasources, not delete_datasources remove internal influx ifql datasource Document the endpoint for deleting an org tests: rewrite into table tests influxdb: adds mode func to backend changelog: add notes about closing grafana#11484 changelog: add notes about closing grafana#11233 Remove import Fix PR feedback Removed papaparse from external plugin exports Karma to Jest: query_builder dsproxy: move http client variable back Karma to Jest: threshold_mapper Expose react and slate to external plugins Karma to Jest: threshold_manager Karma to Jest: query_def, index_pattern ...
2 parents 4a8e9cf + e33d187 commit 6cd83e1

File tree

82 files changed

+10225
-4868
lines changed

Some content is hidden

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

82 files changed

+10225
-4868
lines changed

.circleci/config.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,21 @@ jobs:
183183
command: 'sudo pip install awscli'
184184
- run:
185185
name: deploy to s3
186-
command: 'aws s3 sync ./dist s3://$BUCKET_NAME/master'
186+
command: |
187+
# Also
188+
cp dist/grafana-latest.linux-x64.tar.gz dist/grafana-master-$(echo "${CIRCLE_SHA1}" | cut -b1-7).linux-x64.tar.gz
189+
aws s3 sync ./dist s3://$BUCKET_NAME/master
187190
- run:
188191
name: Trigger Windows build
189192
command: './scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} master'
190193
- run:
191194
name: Trigger Docker build
192-
command: './scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}'
195+
command: './scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN} master-$(echo "${CIRCLE_SHA1}" | cut -b1-7)'
193196
- run:
194197
name: Publish to Grafana.com
195-
command: './scripts/publish -apiKey ${GRAFANA_COM_API_KEY}'
198+
command: |
199+
rm dist/grafana-master-$(echo "${CIRCLE_SHA1}" | cut -b1-7).linux-x64.tar.gz
200+
./scripts/publish -apiKey ${GRAFANA_COM_API_KEY}
196201
197202
deploy-release:
198203
docker:
@@ -241,8 +246,8 @@ workflows:
241246
- mysql-integration-test
242247
- postgres-integration-test
243248
filters:
244-
branches:
245-
only: master
249+
branches:
250+
only: master
246251
release:
247252
jobs:
248253
- build-all:

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
### New Features
44

5+
* **Dashboard**: Import dashboard to folder [#10796](https://github.com/grafana/grafana/issues/10796)
6+
7+
### Minor
8+
9+
* **Dashboard**: Fix so panel titles doesn't wrap [#11074](https://github.com/grafana/grafana/issues/11074)
10+
* **Dashboard**: Prevent double-click when saving dashboard [#11963](https://github.com/grafana/grafana/issues/11963)
11+
* **Dashboard**: AutoFocus the add-panel search filter [#12189](https://github.com/grafana/grafana/pull/12189) thx [@ryantxu](https://github.com/ryantxu)
12+
* **Units**: W/m2 (energy), l/h (flow) and kPa (pressure) [#11233](https://github.com/grafana/grafana/pull/11233), thx [@flopp999](https://github.com/flopp999)
13+
* **Units**: Litre/min (flow) and milliLitre/min (flow) [#12282](https://github.com/grafana/grafana/pull/12282), thx [@flopp999](https://github.com/flopp999)
14+
* **Alerting**: Fix mobile notifications for Microsoft Teams alert notifier [#11484](https://github.com/grafana/grafana/pull/11484), thx [@manacker](https://github.com/manacker)
15+
16+
# 5.2.0-beta1 (2018-06-05)
17+
18+
### New Features
19+
520
* **Elasticsearch**: Alerting support [#5893](https://github.com/grafana/grafana/issues/5893), thx [@WPH95](https://github.com/WPH95)
621
* **Login**: Change admin password after first login [#11882](https://github.com/grafana/grafana/issues/11882)
722
* **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)
@@ -35,6 +50,8 @@
3550
* **Alert list panel**: Show alerts for user with viewer role [#11167](https://github.com/grafana/grafana/issues/11167)
3651
* **Provisioning**: Verify checksum of dashboards before updating to reduce load on database [#11670](https://github.com/grafana/grafana/issues/11670)
3752
* **Provisioning**: Support symlinked files in dashboard provisioning config files [#11958](https://github.com/grafana/grafana/issues/11958)
53+
* **Dashboard list panel**: Search dashboards by folder [#11525](https://github.com/grafana/grafana/issues/11525)
54+
* **Sidenav**: Always show server admin link in sidenav if grafana admin [#11657](https://github.com/grafana/grafana/issues/11657)
3855

3956
# 5.1.3 (2018-05-16)
4057

Gopkg.lock

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

Gopkg.toml

Lines changed: 2 additions & 2 deletions
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]]
@@ -129,7 +129,7 @@ ignored = [
129129

130130
[[constraint]]
131131
name = "github.com/mattn/go-sqlite3"
132-
version = "1.6.0"
132+
version = "1.7.0"
133133

134134
[[constraint]]
135135
name = "github.com/opentracing/opentracing-go"

docs/sources/administration/provisioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Saltstack | [https://github.com/salt-formulas/salt-formula-grafana](https://gith
7676

7777
> This feature is available from v5.0
7878
79-
It's possible to manage datasources in Grafana by adding one or more yaml config files in the [`provisioning/datasources`](/installation/configuration/#provisioning) directory. Each config file can contain a list of `datasources` that will be added or updated during start up. If the datasource already exists, Grafana will update it to match the configuration file. The config file can also contain a list of datasources that should be deleted. That list is called `delete_datasources`. Grafana will delete datasources listed in `delete_datasources` before inserting/updating those in the `datasource` list.
79+
It's possible to manage datasources in Grafana by adding one or more yaml config files in the [`provisioning/datasources`](/installation/configuration/#provisioning) directory. Each config file can contain a list of `datasources` that will be added or updated during start up. If the datasource already exists, Grafana will update it to match the configuration file. The config file can also contain a list of datasources that should be deleted. That list is called `deleteDatasources`. Grafana will delete datasources listed in `deleteDatasources` before inserting/updating those in the `datasource` list.
8080

8181
### Running Multiple Grafana Instances
8282

docs/sources/features/datasources/graphite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ queries through the use of query references.
2020
## Adding the data source
2121

2222
1. Open the side menu by clicking the Grafana icon in the top header.
23-
2. In the side menu under the `Dashboards` link you should find a link named `Data Sources`.
23+
2. In the side menu under the `Configuration` link you should find a link named `Data Sources`.
2424
3. Click the `+ Add data source` button in the top header.
2525
4. Select `Graphite` from the *Type* dropdown.
2626

docs/sources/guides/whats-new-in-v5-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Grafana v5.1 brings an improved workflow for provisioned dashboards:
115115

116116

117117
Available options in the dialog will let you `Copy JSON to Clipboard` and/or `Save JSON to file` which can help you synchronize your dashboard changes back to the provisioning source.
118-
More information in the [Provisioning documentation](/features/datasources/prometheus/).
118+
More information in the [Provisioning documentation](/administration/provisioning/).
119119

120120
<div class="clearfix"></div>
121121

docs/sources/http_api/org.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,27 @@ Content-Type: application/json
331331
{"message":"Organization updated"}
332332
```
333333

334+
## Delete Organisation
335+
336+
`DELETE /api/orgs/:orgId`
337+
338+
**Example Request**:
339+
340+
```http
341+
DELETE /api/orgs/1 HTTP/1.1
342+
Accept: application/json
343+
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
344+
```
345+
346+
**Example Response**:
347+
348+
```http
349+
HTTP/1.1 200
350+
Content-Type: application/json
351+
352+
{"message":"Organization deleted"}
353+
```
354+
334355
## Get Users in Organisation
335356

336357
`GET /api/orgs/:orgId/users`

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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ $ docker run \
4949
grafana/grafana:5.1.0
5050
```
5151

52+
## Running of the master branch
53+
54+
For every successful commit we publish a Grafana container to [`grafana/grafana`](https://hub.docker.com/r/grafana/grafana/tags/) and [`grafana/grafana-dev`](https://hub.docker.com/r/grafana/grafana-dev/tags/). In `grafana/grafana` container we will always overwrite the `master` tag with the latest version. In `grafana/grafana-dev` we will include
55+
the git commit in the tag. If you run Grafana master in production we **strongly** recommend that you use the later since different machines might run different version of grafana if they pull the master tag at different times.
56+
5257
## Installing Plugins for Grafana
5358

5459
Pass the plugins you want installed to docker with the `GF_INSTALL_PLUGINS` environment variable as a comma separated list. This will pass each plugin name to `grafana-cli plugins install ${plugin}` and install them when Grafana starts.
@@ -132,6 +137,8 @@ docker run -d --user $ID --volume "$PWD/data:/var/lib/grafana" -p 3000:3000 graf
132137

133138
## Reading secrets from files (support for Docker Secrets)
134139

140+
> Available in v5.2.0 and later
141+
135142
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.
136143

137144
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.

0 commit comments

Comments
 (0)