mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into interval
This commit is contained in:
commit
aeb0c5cb53
@ -25,7 +25,10 @@ install:
|
|||||||
build_script:
|
build_script:
|
||||||
- go run build.go build
|
- go run build.go build
|
||||||
- grunt release
|
- grunt release
|
||||||
|
#- 7z a grafana.zip %APPVEYOR_BUILD_FOLDER%\dist\*
|
||||||
|
- cp dist/* .
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: dist/*
|
- path: grafana-*windows-ia32.zip
|
||||||
|
#- path: dist/*
|
||||||
name: binzip
|
name: binzip
|
||||||
|
@ -28,3 +28,4 @@ deployment:
|
|||||||
owner: grafana
|
owner: grafana
|
||||||
commands:
|
commands:
|
||||||
- ./scripts/trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
|
- ./scripts/trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
|
||||||
|
- ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN}
|
||||||
|
@ -91,7 +91,7 @@ The legend values are calculated client side by Grafana and depend on what type
|
|||||||
aggregation or point consolidation you metric query is using. All the above legend values cannot
|
aggregation or point consolidation you metric query is using. All the above legend values cannot
|
||||||
be correct at the same time. For example if you plot a rate like requests/second, this is probably
|
be correct at the same time. For example if you plot a rate like requests/second, this is probably
|
||||||
using average as aggregator, then the Total in the legend will not represent the total number of requests.
|
using average as aggregator, then the Total in the legend will not represent the total number of requests.
|
||||||
It is just the sum of all data data points received by Grafana.
|
It is just the sum of all data points received by Grafana.
|
||||||
|
|
||||||
## Display styles
|
## Display styles
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ func (a *ldapAuther) Dial() error {
|
|||||||
var err error
|
var err error
|
||||||
var certPool *x509.CertPool
|
var certPool *x509.CertPool
|
||||||
if a.server.RootCACert != "" {
|
if a.server.RootCACert != "" {
|
||||||
certPool := x509.NewCertPool()
|
certPool = x509.NewCertPool()
|
||||||
for _, caCertFile := range strings.Split(a.server.RootCACert, " ") {
|
for _, caCertFile := range strings.Split(a.server.RootCACert, " ") {
|
||||||
if pem, err := ioutil.ReadFile(caCertFile); err != nil {
|
if pem, err := ioutil.ReadFile(caCertFile); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -461,7 +461,7 @@ func NewConfigContext(args *CommandLineArgs) error {
|
|||||||
|
|
||||||
Env = Cfg.Section("").Key("app_mode").MustString("development")
|
Env = Cfg.Section("").Key("app_mode").MustString("development")
|
||||||
InstanceName = Cfg.Section("").Key("instance_name").MustString("unknown_instance_name")
|
InstanceName = Cfg.Section("").Key("instance_name").MustString("unknown_instance_name")
|
||||||
PluginsPath = Cfg.Section("paths").Key("plugins").String()
|
PluginsPath = makeAbsolute(Cfg.Section("paths").Key("plugins").String(), HomePath)
|
||||||
|
|
||||||
server := Cfg.Section("server")
|
server := Cfg.Section("server")
|
||||||
AppUrl, AppSubUrl = parseAppUrlAndSubUrl(server)
|
AppUrl, AppSubUrl = parseAppUrlAndSubUrl(server)
|
||||||
|
@ -384,10 +384,32 @@ module.directive('grafanaGraph', function($rootScope, timeSrv) {
|
|||||||
if (!annotations || annotations.length === 0) {
|
if (!annotations || annotations.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(annotations);
|
||||||
|
|
||||||
var types = {};
|
var types = {};
|
||||||
|
types['$__alerting'] = {
|
||||||
|
color: 'rgba(237, 46, 24, 1)',
|
||||||
|
position: 'BOTTOM',
|
||||||
|
markerSize: 5,
|
||||||
|
};
|
||||||
|
types['$__ok'] = {
|
||||||
|
color: 'rgba(11, 237, 50, 1)',
|
||||||
|
position: 'BOTTOM',
|
||||||
|
markerSize: 5,
|
||||||
|
};
|
||||||
|
types['$__nodata'] = {
|
||||||
|
color: 'rgba(150, 150, 150, 1)',
|
||||||
|
position: 'BOTTOM',
|
||||||
|
markerSize: 5,
|
||||||
|
};
|
||||||
|
|
||||||
for (var i = 0; i < annotations.length; i++) {
|
for (var i = 0; i < annotations.length; i++) {
|
||||||
var item = annotations[i];
|
var item = annotations[i];
|
||||||
|
if (item.newState) {
|
||||||
|
console.log(item.newState);
|
||||||
|
item.eventType = '$__' + item.newState;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!types[item.source.name]) {
|
if (!types[item.source.name]) {
|
||||||
types[item.source.name] = {
|
types[item.source.name] = {
|
||||||
|
9
scripts/trigger_windows_build.sh
Executable file
9
scripts/trigger_windows_build.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
_token=$1
|
||||||
|
|
||||||
|
curl \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "Authorization: Bearer ${_token}" \
|
||||||
|
-X POST -d '{ "accountName": "Torkeldegaard", "projectSlug": "grafana","branch": "master","environmentVariables": {}}' \
|
||||||
|
https://ci.appveyor.com/api/builds
|
Loading…
Reference in New Issue
Block a user