Revert "prometheus nested query support"

This commit is contained in:
Carl Bergquist
2017-11-30 15:06:02 +01:00
committed by GitHub
parent 98f0305e68
commit af5ced0e18
2 changed files with 0 additions and 23 deletions

View File

@@ -590,19 +590,4 @@ describe('PrometheusDatasource', function() {
expect(query.scopedVars.__interval_ms.value).to.be(5 * 1000);
});
});
describe('The nested query', function() {
it('should generate correct query', function() {
let query = 'sum(rate(#A[1m]))';
let options = {
targets: [
{
refId: 'A',
expr: 'http_requests_total'
}
]
};
let result = ctx.ds.replaceNestedQuery(query, options);
expect(result).to.be('sum(rate(http_requests_total[1m]))');
});
});
});