Skip to content

Commit aeb0c5c

Browse files
committed
Merge branch 'master' into interval
2 parents f4e0a92 + fb99d9d commit aeb0c5c

File tree

7 files changed

+39
-4
lines changed

7 files changed

+39
-4
lines changed

appveyor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ install:
2525
build_script:
2626
- go run build.go build
2727
- grunt release
28+
#- 7z a grafana.zip %APPVEYOR_BUILD_FOLDER%\dist\*
29+
- cp dist/* .
2830

2931
artifacts:
30-
- path: dist/*
32+
- path: grafana-*windows-ia32.zip
33+
#- path: dist/*
3134
name: binzip

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}

docs/sources/reference/graph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The legend values are calculated client side by Grafana and depend on what type
9191
aggregation or point consolidation you metric query is using. All the above legend values cannot
9292
be correct at the same time. For example if you plot a rate like requests/second, this is probably
9393
using average as aggregator, then the Total in the legend will not represent the total number of requests.
94-
It is just the sum of all data data points received by Grafana.
94+
It is just the sum of all data points received by Grafana.
9595

9696
## Display styles
9797

pkg/login/ldap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (a *ldapAuther) Dial() error {
3030
var err error
3131
var certPool *x509.CertPool
3232
if a.server.RootCACert != "" {
33-
certPool := x509.NewCertPool()
33+
certPool = x509.NewCertPool()
3434
for _, caCertFile := range strings.Split(a.server.RootCACert, " ") {
3535
if pem, err := ioutil.ReadFile(caCertFile); err != nil {
3636
return err

pkg/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ func NewConfigContext(args *CommandLineArgs) error {
461461

462462
Env = Cfg.Section("").Key("app_mode").MustString("development")
463463
InstanceName = Cfg.Section("").Key("instance_name").MustString("unknown_instance_name")
464-
PluginsPath = Cfg.Section("paths").Key("plugins").String()
464+
PluginsPath = makeAbsolute(Cfg.Section("paths").Key("plugins").String(), HomePath)
465465

466466
server := Cfg.Section("server")
467467
AppUrl, AppSubUrl = parseAppUrlAndSubUrl(server)

public/app/plugins/panel/graph/graph.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,32 @@ module.directive('grafanaGraph', function($rootScope, timeSrv) {
384384
if (!annotations || annotations.length === 0) {
385385
return;
386386
}
387+
console.log(annotations);
387388

388389
var types = {};
390+
types['$__alerting'] = {
391+
color: 'rgba(237, 46, 24, 1)',
392+
position: 'BOTTOM',
393+
markerSize: 5,
394+
};
395+
types['$__ok'] = {
396+
color: 'rgba(11, 237, 50, 1)',
397+
position: 'BOTTOM',
398+
markerSize: 5,
399+
};
400+
types['$__nodata'] = {
401+
color: 'rgba(150, 150, 150, 1)',
402+
position: 'BOTTOM',
403+
markerSize: 5,
404+
};
405+
389406
for (var i = 0; i < annotations.length; i++) {
390407
var item = annotations[i];
408+
if (item.newState) {
409+
console.log(item.newState);
410+
item.eventType = '$__' + item.newState;
411+
continue;
412+
}
391413

392414
if (!types[item.source.name]) {
393415
types[item.source.name] = {

scripts/trigger_windows_build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
_token=$1
4+
5+
curl \
6+
-H "Content-Type: application/json" \
7+
-H "Authorization: Bearer ${_token}" \
8+
-X POST -d '{ "accountName": "Torkeldegaard", "projectSlug": "grafana","branch": "master","environmentVariables": {}}' \
9+
https://ci.appveyor.com/api/builds

0 commit comments

Comments
 (0)