Skip to content

Commit 9a24f2e

Browse files
author
Ryan Bak
committed
Merge remote-tracking branch 'upstream/master' into master-keystone
2 parents 7294779 + 41a1ec2 commit 9a24f2e

File tree

94 files changed

+882
-1339
lines changed

Some content is hidden

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

94 files changed

+882
-1339
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
# 4.0-beta2 (unrelased)
1+
# 4.0-beta2 (2016-11-21)
22

33
### Bugfixes
44
* **Graph Panel**: Log base scale on right Y-axis had no effect, max value calc was not applied, [#6534](https://github.com/grafana/grafana/issues/6534)
55
* **Graph Panel**: Bar width if bars was only used in series override, [#6528](https://github.com/grafana/grafana/issues/6528)
66
* **UI/Browser**: Fixed issue with page/view header gradient border not showing in Safari, [#6530](https://github.com/grafana/grafana/issues/6530)
7+
* **Cloudwatch**: Fixed cloudwatch datasource requesting to many datapoints, [#6544](https://github.com/grafana/grafana/issues/6544)
8+
* **UX**: Panel Drop zone visible after duplicating panel, and when entering fullscreen/edit view, [#6598](https://github.com/grafana/grafana/issues/6598)
9+
* **Templating**: Newly added variable was not visible directly only after dashboard reload, [#6622](https://github.com/grafana/grafana/issues/6622)
10+
11+
### Enhancements
12+
* **Singlestat**: Support repeated template variables in prefix/postfix [#6595](https://github.com/grafana/grafana/issues/6595)
13+
* **Templating**: Don't persist variable options with refresh option [#6586](https://github.com/grafana/grafana/issues/6586)
14+
* **Alerting**: Add ability to have OR conditions (and mixing AND & OR) [#6579](https://github.com/grafana/grafana/issues/6579)
715

816
# 4.0-beta1 (2016-11-09)
917

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB.
1717
- [What's New in Grafana 2.1](http://docs.grafana.org/guides/whats-new-in-v2-1/)
1818
- [What's New in Grafana 2.5](http://docs.grafana.org/guides/whats-new-in-v2-5/)
1919
- [What's New in Grafana 3.0](http://docs.grafana.org/guides/whats-new-in-v3/)
20+
- [What's New in Grafana 4.0 Beta](http://docs.grafana.org/guides/whats-new-in-v4/)
2021

2122
## Features
2223
### Graphite Target Editor

docs/sources/alerting/notifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ Amazon S3 for this and Webdav. So to set that up you need to configure the
9898
[external image uploader](/installation/configuration/#external-image-storage) in your grafana-server ini
9999
config file.
100100

101-
This is not an optional requirement, you can get slack and email notifications without setting this up.
101+
This is an optional requirement, you can get slack and email notifications without setting this up.
102102

103103

docs/sources/alerting/rules.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ Currently the only condition type that exists is a `Query` condition that allows
5555
specify a query letter, time range and an aggregation function. The letter refers to
5656
a query you already have added in the **Metrics** tab. The result from the query and the aggregation function is
5757
a single value that is then used in the threshold check. The query used in an alert rule cannot
58-
contain any template variables. Currently we only support `AND` operator between conditions.
58+
contain any template variables. Currently we only support `AND` and `OR` operators between conditions and they are executed serially.
59+
For example, we have 3 conditions in the following order:
60+
`condition:A(evaluates to: TRUE) OR condition:B(evaluates to: FALSE) AND condition:C(evaluates to: TRUE)`
61+
so the result will be calculated as ((TRUE OR FALSE) AND TRUE) = TRUE.
5962

6063
We plan to add other condition types in the future, like `Other Alert`, where you can include the state
6164
of another alert in your conditions, and `Time Of Day`.

docs/sources/datasources/influxdb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ SHOW TAG VALUES WITH KEY = "hostname" WHERE region =~ /$region/
118118

119119
> Always you `regex values` or `regex wildcard` for All format or multi select format.
120120
121-
![](img/docs/influxdb/templating_simple_ex1.png)
121+
![](/img/docs/influxdb/templating_simple_ex1.png)
122122

123123
## Annotations
124124
Annotations allows you to overlay rich event information on top of graphs.

docs/sources/datasources/plugin_api.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,5 @@ Even though the data source type name is with lowercase `g`, the directive uses
3030
that is how angular directives needs to be named in order to match an element with name `<metric-query-editor-graphite />`.
3131
You also specify the query controller here instead of in the query.editor.html partial like before.
3232

33-
### query.editor.html
34-
35-
This partial needs to be updated, remove the `np-repeat` this is done in the outer partial now,m the query.editor.html
36-
should only render a single query. Take a look at the Graphite or InfluxDB partials for `query.editor.html` for reference.
37-
You should also add a `tight-form-item` with `{{target.refId}}`, all queries needs to be assigned a letter (`refId`).
38-
These query reference letters are going to be utilized in a later feature.
3933

4034

docs/sources/http_api/org.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,34 @@ page_keywords: grafana, admin, http, api, documentation, orgs, organisation
8585
}
8686
}
8787

88+
## Create Organisation
89+
90+
`POST /api/org`
91+
92+
**Example Request**:
93+
94+
POST /api/org HTTP/1.1
95+
Accept: application/json
96+
Content-Type: application/json
97+
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
98+
99+
{
100+
"name":"New Org."
101+
}
102+
103+
104+
**Example Response**:
105+
106+
HTTP/1.1 200
107+
Content-Type: application/json
108+
109+
{
110+
"orgId":"1",
111+
"message":"Organization created"
112+
}
113+
114+
115+
88116
## Update current Organisation
89117

90118
`PUT /api/org`

docs/sources/installation/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ Set to `true` to enable LDAP integration (default: `false`)
413413
### config_file
414414
Path to the LDAP specific configuration file (default: `/etc/grafana/ldap.toml`)
415415

416-
> For details on LDAP Configuration, go to the [LDAP Integration](ldap.md) page.
416+
> For details on LDAP Configuration, go to the [LDAP Integration]({{< relref "ldap.md" >}}) page.
417417
418418
<hr>
419419

docs/sources/installation/debian.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ weight = 1
1515
Description | Download
1616
------------ | -------------
1717
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)
18+
Latest Beta for Debian-based Linux | [4.0.0-beta2 (x86-64 deb)](https://grafanarel.s3.amazonaws.com/builds/grafana_4.0.0-1479719016beta2_amd64.deb)
1919

2020
## Install Stable
2121

@@ -27,9 +27,9 @@ $ sudo dpkg -i grafana_3.1.1-1470047149_amd64.deb
2727

2828
## Install Latest Beta
2929

30-
$ wget https://grafanarel.s3.amazonaws.com/builds/grafana_4.0.0-1478693311beta1_amd64.deb
30+
$ wget https://grafanarel.s3.amazonaws.com/builds/grafana_4.0.0-1479719016beta2_amd64.deb
3131
$ sudo apt-get install -y adduser libfontconfig
32-
$ sudo dpkg -i grafana_4.0.0-1478693311beta1_amd64.deb
32+
$ sudo dpkg -i grafana_4.0.0-1479719016beta2_amd64.deb
3333

3434
## APT Repository
3535

@@ -139,5 +139,3 @@ To configure Grafana add a configuration file named `custom.ini` to the
139139
Start Grafana by executing `./bin/grafana-server web`. The `grafana-server`
140140
binary needs the working directory to be the root install directory (where the
141141
binary and the `public` folder is located).
142-
143-

docs/sources/installation/rpm.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ weight = 2
1515
Description | Download
1616
------------ | -------------
1717
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)
18+
Latest Beta for CentOS / Fedora / OpenSuse / Redhat Linux | [4.0.0-beta2 (x86-64 rpm)](https://grafanarel.s3.amazonaws.com/builds/grafana-4.0.0-1479719016beta2.x86_64.rpm)
1919

2020
## Install Stable
2121

@@ -36,18 +36,18 @@ Or install manually using `rpm`.
3636

3737
## Or Install Latest Beta
3838

39-
$ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-4.0.0-1478693311beta1.x86_64.rpm
39+
$ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-4.0.0-1479719016beta2.x86_64.rpm
4040

4141
Or install manually using `rpm`.
4242

4343
#### On CentOS / Fedora / Redhat:
4444

4545
$ sudo yum install initscripts fontconfig
46-
$ sudo rpm -Uvh grafana-4.0.0-1478693311beta1.x86_64.rpm
46+
$ sudo rpm -Uvh grafana-4.0.0-1479719016beta2.x86_64.rpm
4747

4848
#### On OpenSuse:
4949

50-
$ sudo rpm -i --nodeps grafana-4.0.0-1478693311beta1.x86_64.rpm
50+
$ sudo rpm -i --nodeps grafana-4.0.0-1479719016beta2.x86_64.rpm
5151

5252
## Install via YUM Repository
5353

@@ -141,6 +141,18 @@ those options.
141141
- [OpenTSDB]({{< relref "datasources/opentsdb.md" >}})
142142
- [Prometheus]({{< relref "datasources/prometheus.md" >}})
143143

144+
### Server side image rendering
145+
146+
Server side image (png) rendering is a feature that is optional but very useful when sharing visualizations,
147+
for example in alert notifications.
148+
149+
If the image is missing text make sure you have font packages installed.
150+
151+
```
152+
yum install fontconfig
153+
yum install freetype*
154+
yum install urw-fonts
155+
```
144156

145157
## Installing from binary tar file
146158

0 commit comments

Comments
 (0)