Skip to content

Commit 00a5232

Browse files
author
Ryan Bak
committed
Merge remote-tracking branch 'upstream/master' into master-keystone
Pulls in the latest upstream grafana work
2 parents 30f46ed + 741faa2 commit 00a5232

File tree

306 files changed

+8265
-3256
lines changed

Some content is hidden

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

306 files changed

+8265
-3256
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
* **Elasticsearch**: Support to set Precision Threshold for Unique Count metric, closes [#4689](https://github.com/grafana/grafana/issues/4689)
1010
* **Navigation**: Add search to org swithcer, closes [#2609](https://github.com/grafana/grafana/issues/2609)
1111
* **Database**: Allow database config using one propertie, closes [#5456](https://github.com/grafana/grafana/pull/5456)
12-
* **Graphite**: Add support for groupByNode, closes [#5613](https://github.com/grafana/grafana/pull/5613)
12+
* **Graphite**: Add support for groupByNodes, closes [#5613](https://github.com/grafana/grafana/pull/5613)
1313
* **Influxdb**: Add support for elapsed(), closes [#5827](https://github.com/grafana/grafana/pull/5827)
14+
* **OpenTSDB**: Add support for explicitTags for OpenTSDB>=2.3, closes [#6360](https://github.com/grafana/grafana/pull/6361)
1415
* **OAuth**: Add support for generic oauth, closes [#4718](https://github.com/grafana/grafana/pull/4718)
1516
* **Cloudwatch**: Add support to expand multi select template variable, closes [#5003](https://github.com/grafana/grafana/pull/5003)
1617
* **Graph Panel**: Now supports flexible lower/upper bounds on Y-Max and Y-Min, PR [#5720](https://github.com/grafana/grafana/pull/5720)
@@ -27,7 +28,9 @@
2728
* **Graph panel**: Fixed problem with auto decimals on y axis when datamin=datamax, fixes [#6070](https://github.com/grafana/grafana/pull/6070)
2829
* **Snapshot**: Can view embedded panels/png rendered panels in snapshots without login, fixes [#3769](https://github.com/grafana/grafana/pull/3769)
2930
* **Elasticsearch**: Fix for query template variable when looking up terms without query, no longer relies on elasticsearch default field, fixes [#3887](https://github.com/grafana/grafana/pull/3887)
31+
* **Elasticsearch**: Fix for displaying IP address used in terms aggregations, fixes [#4393](https://github.com/grafana/grafana/pull/4393)
3032
* **PNG Rendering**: Fix for server side rendering when using auth proxy, fixes [#5906](https://github.com/grafana/grafana/pull/5906)
33+
* **OpenTSDB**: Fixed multi-value nested templating for opentsdb, fixes [#6455](https://github.com/grafana/grafana/pull/6455)
3134

3235
# 3.1.2 (unreleased)
3336
* **Templating**: Fixed issue when combining row & panel repeats, fixes [#5790](https://github.com/grafana/grafana/issues/5790)

Gruntfile.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ module.exports = function (grunt) {
1212
platform: process.platform.replace('win32', 'windows'),
1313
};
1414

15-
if (process.platform.match(/^win/)) {
16-
config.arch = process.env.hasOwnProperty('ProgramFiles(x86)') ? 'x64' : 'x86';
15+
if (grunt.option('arch')) {
16+
config.arch = grunt.option('arch');
17+
} else {
18+
config.arch = os.arch();
19+
20+
if (process.platform.match(/^win/)) {
21+
config.arch = process.env.hasOwnProperty('ProgramFiles(x86)') ? 'x64' : 'x86';
22+
}
1723
}
1824

19-
config.arch = grunt.option('arch') || os.arch();
20-
2125
config.phjs = grunt.option('phjsToRelease');
2226

2327
config.pkg.version = grunt.option('pkgVer') || config.pkg.version;

Makefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
all: deps build
22

3-
deps:
3+
deps-go:
44
go run build.go setup
5+
6+
deps-js:
57
npm install
68

7-
build:
9+
deps: deps-go deps-js
10+
11+
build-go:
812
go run build.go build
13+
14+
build-js:
915
npm run build
1016

11-
test:
17+
build: build-go build-js
18+
19+
test-go:
1220
go test -v ./pkg/...
21+
22+
test-js:
1323
npm test
1424

25+
test: test-go test-js
26+
1527
run:
1628
./bin/grafana-server

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Be sure to read the [getting started guide](http://docs.grafana.org/guides/getti
7474

7575
## Run from master
7676
If you want to build a package yourself, or contribute. Here is a guide for how to do that. You can always find
77-
the latest master builds [here](http://grafana.org/download/builds)
77+
the latest master builds [here](http://grafana.org/builds)
7878

7979
### Dependencies
8080

@@ -87,11 +87,11 @@ the latest master builds [here](http://grafana.org/download/builds)
8787
go get github.com/grafana/grafana
8888
```
8989

90-
Since imports of dependencies use the absolute path github.com/grafana/grafana within the $GOPATH,
91-
you will need to put your version of the code in $GOPATH/src/github.com/grafana/grafana to be able
90+
Since imports of dependencies use the absolute path `github.com/grafana/grafana` within the `$GOPATH`,
91+
you will need to put your version of the code in `$GOPATH/src/github.com/grafana/grafana` to be able
9292
to develop and build grafana on a cloned repository. To do so, you can clone your forked repository
93-
directly to $GOPATH/src/github.com/grafana or you can create a symbolic link from your version
94-
of the code to $GOPATH/src/github.com/grafana/grafana. The last options makes it possible to change
93+
directly to `$GOPATH/src/github.com/grafana` or you can create a symbolic link from your version
94+
of the code to `$GOPATH/src/github.com/grafana/grafana`. The last options makes it possible to change
9595
easily the grafana repository you want to build.
9696
```bash
9797
go get github.com/*your_account*/grafana
@@ -108,7 +108,7 @@ go run build.go build
108108

109109
### Building frontend assets
110110

111-
To build less to css for the frontend you will need a recent version of of **node (v4+)**,
111+
To build less to css for the frontend you will need a recent version of **node (v4+)**,
112112
npm (v2.5.0) and grunt (v0.4.5). Run the following:
113113

114114
```bash
@@ -135,7 +135,7 @@ bra run
135135
./bin/grafana-server
136136
```
137137

138-
Open grafana in your browser (default http://localhost:3000) and login with admin user (default user/pass = admin/admin).
138+
Open grafana in your browser (default: `http://localhost:3000`) and login with admin user (default: `user/pass = admin/admin`).
139139

140140
### Dev config
141141

@@ -147,7 +147,7 @@ You only need to add the options you want to override. Config files are applied
147147
3. custom.ini
148148

149149
## Create a pull request
150-
Before or after you create a pull request, sign the [contributor license agreement](http://grafana.org/docs/contributing/cla.html).
150+
Before or after you create a pull request, sign the [contributor license agreement](http://docs.grafana.org/project/cla/).
151151

152152
## Contribute
153153
If you have any idea for an improvement or found a bug do not hesitate to open an issue.

appveyor.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ install:
2525
build_script:
2626
- go run build.go build
2727
- grunt release
28+
- go run build.go sha1-dist
29+
- cp dist/* .
2830

2931
artifacts:
30-
- path: dist/*
32+
- path: grafana-*windows-*.*
3133
name: binzip
34+
35+
deploy:
36+
- provider: Environment
37+
name: GrafanaBuildsS3

build.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ func main() {
9898
createDebPackages()
9999
sha1FilesInDist()
100100

101+
case "sha1-dist":
102+
sha1FilesInDist()
103+
101104
case "latest":
102105
makeLatestDistCopies()
103106
sha1FilesInDist()

circle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ deployment:
2828
owner: grafana
2929
commands:
3030
- ./scripts/trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
31+
- ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN}

conf/defaults.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ auth_url = https://accounts.google.com/o/oauth2/auth
229229
token_url = https://accounts.google.com/o/oauth2/token
230230
api_url = https://www.googleapis.com/oauth2/v1/userinfo
231231
allowed_domains =
232+
hosted_domain =
232233

233234
#################################### Grafana.net Auth ####################
234235
[auth.grafananet]

docker/blocks/influxdb/config.toml

Lines changed: 0 additions & 75 deletions
This file was deleted.

docker/blocks/influxdb/fig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
influxdb:
2-
#image: influxdb/influxdb:1.0-alpine
32
image: influxdb:latest
43
container_name: influxdb
54
ports:
65
- "2004:2004"
76
- "8083:8083"
87
- "8086:8086"
8+
volumes:
9+
- ./blocks/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
910

1011
fake-influxdb-data:
1112
image: grafana/fake-data-gen

0 commit comments

Comments
 (0)