Skip to content

Commit ecba23e

Browse files
committed
Merge branch 'master' into influxdb_alias_seriename
2 parents f0a0e64 + 70b9ba2 commit ecba23e

File tree

23 files changed

+268
-177
lines changed

23 files changed

+268
-177
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# 4.0-pre (unreleased)
1+
# 4.0-beta2 (unrelased)
2+
3+
### Bugfixes
4+
* **Graph Panel**: Bar width if bars was only used in series override, [#6528](https://github.com/grafana/grafana/issues/6528)
5+
6+
# 4.0-beta1 (2016-11-09)
27

38
### Enhancements
49
* **Login**: Adds option to disable username/password logins, closes [#4674](https://github.com/grafana/grafana/issues/4674)
@@ -18,12 +23,13 @@
1823
* **Background Tasks**: Now support automatic purging of old rendered images, closes [#2172](https://github.com/grafana/grafana/issues/2172)
1924
* **Dashboard**: After inactivity hide nav/row actions, fade to nice clean view, can be toggled with `d v`, also added kiosk mode, toggled via `d k` [#6476](https://github.com/grafana/grafana/issues/6476)
2025
* **Dashboard**: Improved dashboard row menu & add panel UX [#6442](https://github.com/grafana/grafana/issues/6442)
26+
* **Graph Panel**: Support for stacking null values [#2912](https://github.com/grafana/grafana/issues/2912), [#6287](https://github.com/grafana/grafana/issues/6287), thanks @benrubson!
2127

2228
### Breaking changes
2329
* **SystemD**: Change systemd description, closes [#5971](https://github.com/grafana/grafana/pull/5971)
2430
* **lodash upgrade**: Upgraded lodash from 2.4.2 to 4.15.0, this contains a number of breaking changes that could effect plugins. closes [#6021](https://github.com/grafana/grafana/pull/6021)
2531

26-
### Bugfixes
32+
### Bug fixes
2733
* **Table Panel**: Fixed problem when switching to Mixed datasource in metrics tab, fixes [#5999](https://github.com/grafana/grafana/pull/5999)
2834
* **Playlist**: Fixed problem with play order not matching order defined in playlist, fixes [#5467](https://github.com/grafana/grafana/pull/5467)
2935
* **Graph panel**: Fixed problem with auto decimals on y axis when datamin=datamax, fixes [#6070](https://github.com/grafana/grafana/pull/6070)

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ machine:
55
GOPATH: "/home/ubuntu/.go_workspace"
66
ORG_PATH: "github.com/grafana"
77
REPO_PATH: "${ORG_PATH}/grafana"
8-
GODIST: "go1.7.1.linux-amd64.tar.gz"
8+
GODIST: "go1.7.3.linux-amd64.tar.gz"
99
post:
1010
- mkdir -p download
1111
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST

docs/sources/alerting/notifications.md

Lines changed: 16 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,12 @@ to add and configure a `notification` object. This is done from the Alerting/Not
2525
On the notifications list page hit the `New Notification` button to go the the page where you
2626
can configure and setup a new notification.
2727

28-
You you specify name and type, and type specific options. You can also test the notification to make
28+
You specify name and type, and type specific options. You can also test the notification to make
2929
sure it's working and setup correctly.
3030

31-
<!-- You can reach this page from the Alerting submenu or Alert List page header. -->
32-
<!-- When you configure a notification you can have it be a global notifiations, meaning -->
33-
<!-- it will be sent for all alerts within Grafana. This is useful to make sure you won’t miss to configure -->
34-
<!-- notifications for an alert. You can find the alert notification page in the main menu under alerting. -->
35-
<!-- -->
36-
37-
<!-- ## Add a notifications to an Alert -->
38-
<!-- You can add and remove notifications from an alert by going to the `Notifications` sub menu in the alerting tab. -->
39-
<!-- -->
40-
<!-- -->
41-
<!-- <img class="no-shadow" src="/img/docs/v4/alerttab_notifications_submenu.png"> -->
42-
<!-- -->
43-
<!-- -->
44-
<!-- Click the `+` button to add a new notification and the `x` to remove. Notifications with a blue backgrounds are enabled by default for all alerts and cannot be modified from this view. -->
45-
<!-- -->
46-
<!-- -->
47-
<!-- <img class="no-shadow" src="/img/docs/v4/add_remove_notifications.png"> -->
48-
<!-- -->
49-
5031
### Send on all alerts
5132

52-
This option will make this notification used for all alert rules, existing and new.
33+
When checked this option will make this notification used for all alert rules, existing and new.
5334

5435
## Supported notification types
5536

@@ -61,12 +42,25 @@ To enable email notification you have to setup [SMTP settings](/installation/con
6142
in the Grafana config. Email notification will upload an image of the alert graph to an
6243
external image destination if available or fallback on attaching the image in the email.
6344

45+
### Slack
46+
47+
{{< imgbox max-width="40%" img="/img/docs/v4/slack_notification.png" caption="Alerting Slack Notification" >}}
48+
49+
To set up slack you need to configure an incoming webhook url at slack. You can follow their guide for how
50+
to do that https://api.slack.com/incoming-webhooks If you want to include screenshots of the firing alerts
51+
in the slack messages you have to configure the [external image destination](#external-image-store) in Grafana.
52+
53+
Setting | Description
54+
---------- | -----------
55+
Recipient | allows you to override the slack recipient.
56+
Mention | make it possible to include a mention in the slack notification sent by Grafana. Ex @here or @channel
57+
6458
### Webhook
6559

6660
The webhook notification is a simple way to send information about an state change over HTTP to a custom endpoint.
6761
Using this notification you could integrated Grafana into any system you choose, by yourself.
6862

69-
Example json schema:
63+
Example json body:
7064
```json
7165
{
7266
"title": "My alert",
@@ -85,19 +79,6 @@ Example json schema:
8579
}
8680
```
8781

88-
### Slack
89-
90-
{{< imgbox max-width="40%" img="/img/docs/v4/slack_notification.png" caption="Alerting Slack Notification" >}}
91-
92-
To set up slack you need to configure an incoming webhook url at slack. You can follow their guide for how
93-
to do that https://api.slack.com/incoming-webhooks If you want to include screenshots of the firing alerts
94-
in the slack messages you have to configure the [external image destination](#external-image-store) in Grafana.
95-
96-
Setting | Description
97-
---------- | -----------
98-
Recipient | allows you to override the slack recipient.
99-
Mention | make it possible to include a mention in the slack notification sent by Grafana. Ex @here or @channel
100-
10182
### PagerDuty
10283

10384
To set up PagerDuty, all you have to do is to provide an api key.
@@ -120,7 +101,3 @@ config file.
120101
This is not an optional requirement, you can get slack and email notifications without setting this up.
121102

122103

123-
124-
125-
126-

docs/sources/alerting/rules.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
+++
2-
title = "Alerting Engine Rules Guide"
2+
title = "Alerting Engine & Rules Guide"
33
description = "Configuring Alert Rules"
44
keywords = ["grafana", "alerting", "guide", "rules"]
55
type = "docs"
@@ -73,7 +73,7 @@ in the scenario below.
7373
- No new notifications are sent as the alert rule is already in state `Alerting`.
7474

7575
So as you can see from the above scenario Grafana will not send out notifications when other series cause the alert
76-
to fire if the rule already is in state ´Alerting`. To improve support for queries that return multiple series
76+
to fire if the rule already is in state `Alerting`. To improve support for queries that return multiple series
7777
we plan to track state **per series** in a future release.
7878

7979
### No Data / Null values
@@ -107,6 +107,12 @@ The message can contain anything, information about how you might solve the issu
107107
The actual notifications are configured and shared between multiple alerts. Read the
108108
[Notifications]({{< relref "notifications.md" >}}) guide for how to configure and setup notifications.
109109

110+
## Alert State History & Annotations
111+
112+
Alert state changes are recorded in the internal annotation table in Grafana's database. The state changes
113+
are visualized as annotations in the alert rule's graph panel. You can also go into the `State history`
114+
submenu in the alert tab to view & clear state history.
115+
110116
## Troubleshooting
111117

112118
{{< imgbox max-width="40%" img="/img/docs/v4/alert_test_rule.png" caption="Test Rule" >}}

docs/sources/installation/debian.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,22 @@ weight = 1
1414

1515
Description | Download
1616
------------ | -------------
17-
Stable .deb for Debian-based Linux | [3.1.1 (x86-64 deb)](https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.1-1470047149_amd64.deb)
17+
Stable for Debian-based Linux | [3.1.1 (x86-64 deb)](https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.1-1470047149_amd64.deb)
18+
Latest Beta for Debian-based Linux | [4.0.0-beta1 (x86-64 deb)](https://grafanarel.s3.amazonaws.com/builds/grafana_4.0.0-1478693311beta1_amd64.deb)
1819

1920
## Install Stable
2021

21-
$ wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.1-1470047149_amd64.deb
22+
```
23+
$ wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.1-1470047149_amd64.deb
24+
$ sudo apt-get install -y adduser libfontconfig
25+
$ sudo dpkg -i grafana_3.1.1-1470047149_amd64.deb
26+
```
27+
28+
## Install Latest Beta
29+
30+
$ wget https://grafanarel.s3.amazonaws.com/builds/grafana_4.0.0-1478693311beta1_amd64.deb
2231
$ sudo apt-get install -y adduser libfontconfig
23-
$ sudo dpkg -i grafana_3.1.1-1470047149_amd64.deb
32+
$ sudo dpkg -i grafana_4.0.0-1478693311beta1_amd64.deb
2433

2534
## APT Repository
2635

docs/sources/installation/rpm.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ weight = 2
1414

1515
Description | Download
1616
------------ | -------------
17-
Stable .RPM for CentOS / Fedora / OpenSuse / Redhat Linux | [3.1.1 (x86-64 rpm)](https://grafanarel.s3.amazonaws.com/builds/grafana-3.1.1-1470047149.x86_64.rpm)
17+
Stable for CentOS / Fedora / OpenSuse / Redhat Linux | [3.1.1 (x86-64 rpm)](https://grafanarel.s3.amazonaws.com/builds/grafana-3.1.1-1470047149.x86_64.rpm)
18+
Latest Beta for CentOS / Fedora / OpenSuse / Redhat Linux | [4.0.0-beta1 (x86-64 rpm)](https://grafanarel.s3.amazonaws.com/builds/grafana-4.0.0-1478693311beta1.x86_64.rpm)
1819

1920
## Install Stable
2021

@@ -33,6 +34,21 @@ Or install manually using `rpm`.
3334

3435
$ sudo rpm -i --nodeps grafana-3.1.1-1470047149.x86_64.rpm
3536

37+
## Or Install Latest Beta
38+
39+
$ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-4.0.0-1478693311beta1.x86_64.rpm
40+
41+
Or install manually using `rpm`.
42+
43+
#### On CentOS / Fedora / Redhat:
44+
45+
$ sudo yum install initscripts fontconfig
46+
$ sudo rpm -Uvh grafana-4.0.0-1478693311beta1.x86_64.rpm
47+
48+
#### On OpenSuse:
49+
50+
$ sudo rpm -i --nodeps grafana-4.0.0-1478693311beta1.x86_64.rpm
51+
3652
## Install via YUM Repository
3753

3854
Add the following to a new file at `/etc/yum.repos.d/grafana.repo`

docs/sources/installation/windows.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ weight = 3
1313

1414
Description | Download
1515
------------ | -------------
16-
Stable Zip package for Windows | [grafana.3.1.1.windows-x64.zip](https://grafanarel.s3.amazonaws.com/winbuilds/dist/grafana-3.1.1.windows-x64.zip)
16+
Latest stable package for Windows | [grafana.3.1.1.windows-x64.zip](https://grafanarel.s3.amazonaws.com/winbuilds/dist/grafana-3.1.1.windows-x64.zip)
17+
Latest beta package for Windows | [grafana.4.0.0-beta1.windows-x64.zip](https://grafanarel.s3.amazonaws.com/builds/grafana-4.0.0-beta1.windows-x64.zip)
18+
1719

1820
## Configure
1921

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"company": "Coding Instinct AB"
55
},
66
"name": "grafana",
7-
"version": "4.0.0-pre1",
7+
"version": "4.0.0-beta1",
88
"repository": {
99
"type": "git",
1010
"url": "http://github.com/grafana/grafana.git"

pkg/tsdb/influxdb/influxdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (e *InfluxDBExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice,
5757
}
5858

5959
if setting.Env == setting.DEV {
60-
glog.Debug("Influxdb query", "raw query", query)
60+
glog.Debug("Influxdb query", "raw query", rawQuery)
6161
}
6262

6363
req, err := e.createRequest(rawQuery)

pkg/tsdb/influxdb/model_parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ type InfluxdbQueryParser struct{}
1212
func (qp *InfluxdbQueryParser) Parse(model *simplejson.Json, dsInfo *tsdb.DataSourceInfo) (*Query, error) {
1313
policy := model.Get("policy").MustString("default")
1414
rawQuery := model.Get("query").MustString("")
15-
interval := model.Get("interval").MustString("")
1615
alias := model.Get("alias").MustString("")
1716

1817
measurement := model.Get("measurement").MustString("")
@@ -37,7 +36,8 @@ func (qp *InfluxdbQueryParser) Parse(model *simplejson.Json, dsInfo *tsdb.DataSo
3736
return nil, err
3837
}
3938

40-
if interval == "" {
39+
interval := model.Get("interval").MustString("")
40+
if interval == "" && dsInfo.JsonData != nil {
4141
dsInterval := dsInfo.JsonData.Get("timeInterval").MustString("")
4242
if dsInterval != "" {
4343
interval = dsInterval

0 commit comments

Comments
 (0)