mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
graphite: remove check so that query is sent even for possible non leaf nodes
This commit is contained in:
parent
a00af85f36
commit
a02086814e
@ -1,4 +1,4 @@
|
||||
graphite:
|
||||
graphite09:
|
||||
build: blocks/graphite
|
||||
ports:
|
||||
- "8080:80"
|
||||
|
@ -120,14 +120,6 @@ export default class GraphiteQuery {
|
||||
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) {
|
||||
this.functions.push(newFunc);
|
||||
this.moveAliasFuncLast();
|
||||
|
@ -218,7 +218,7 @@ export class GraphiteQueryCtrl extends QueryCtrl {
|
||||
var oldTarget = this.queryModel.target.target;
|
||||
this.updateModelTarget();
|
||||
|
||||
if (this.queryModel.target !== oldTarget && !this.queryModel.hasSelectMetric()) {
|
||||
if (this.queryModel.target !== oldTarget) {
|
||||
this.panelCtrl.refresh();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user