mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 07:23:56 +08:00
graphite: remove check so that query is sent even for possible non leaf nodes
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
graphite:
|
graphite09:
|
||||||
build: blocks/graphite
|
build: blocks/graphite
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
|
@ -120,14 +120,6 @@ export default class GraphiteQuery {
|
|||||||
this.segments.push({value: "select metric"});
|
this.segments.push({value: "select metric"});
|
||||||
}
|
}
|
||||||
|
|
||||||
hasSelectMetric() {
|
|
||||||
if (this.segments.length > 0) {
|
|
||||||
return this.segments[this.segments.length - 1].value === 'select metric';
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
addFunction(newFunc) {
|
addFunction(newFunc) {
|
||||||
this.functions.push(newFunc);
|
this.functions.push(newFunc);
|
||||||
this.moveAliasFuncLast();
|
this.moveAliasFuncLast();
|
||||||
|
@ -218,7 +218,7 @@ export class GraphiteQueryCtrl extends QueryCtrl {
|
|||||||
var oldTarget = this.queryModel.target.target;
|
var oldTarget = this.queryModel.target.target;
|
||||||
this.updateModelTarget();
|
this.updateModelTarget();
|
||||||
|
|
||||||
if (this.queryModel.target !== oldTarget && !this.queryModel.hasSelectMetric()) {
|
if (this.queryModel.target !== oldTarget) {
|
||||||
this.panelCtrl.refresh();
|
this.panelCtrl.refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user