Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
cc43b948
Commit
cc43b948
authored
Nov 20, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3293 from jmcfarlane/prometheus-fix-step-calibration
[prometheus] Fix step calibration
parents
57a31828
c4048f8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
public/app/plugins/datasource/prometheus/datasource.js
+1
-1
public/app/plugins/datasource/prometheus/specs/datasource_specs.ts
+1
-1
No files found.
public/app/plugins/datasource/prometheus/datasource.js
View file @
cc43b948
...
...
@@ -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
)
{
...
...
public/app/plugins/datasource/prometheus/specs/datasource_specs.ts
View file @
cc43b948
...
...
@@ -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=60
s
'
;
'&start=1443438675&end=1443460275&step=60'
;
var
query
=
{
range
:
{
from
:
moment
(
1443438674760
),
to
:
moment
(
1443460274760
)
},
targets
:
[{
expr
:
'test{job="testjob"}'
}],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment