Commit cc43b948 by Torkel Ödegaard

Merge pull request #3293 from jmcfarlane/prometheus-fix-step-calibration

[prometheus] Fix step calibration
parents 57a31828 c4048f8f
......@@ -212,7 +212,7 @@ function (angular, _, moment, dateMath) {
sec = 1;
}
return Math.ceil(sec * intervalFactor) + 's';
return Math.ceil(sec * intervalFactor);
};
function transformMetricData(md, options) {
......
......@@ -19,7 +19,7 @@ describe('PrometheusDatasource', function() {
var results;
var urlExpected = 'proxied/api/v1/query_range?query=' +
encodeURIComponent('test{job="testjob"}') +
'&start=1443438675&end=1443460275&step=60s';
'&start=1443438675&end=1443460275&step=60';
var query = {
range: { from: moment(1443438674760), to: moment(1443460274760) },
targets: [{ expr: 'test{job="testjob"}' }],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment