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
7a2e8324
Commit
7a2e8324
authored
Jul 23, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v3.1.x'
parents
b943e414
ddf579f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
public/app/plugins/datasource/graphite/datasource.ts
+1
-1
public/app/plugins/datasource/graphite/specs/datasource_specs.ts
+6
-1
No files found.
public/app/plugins/datasource/graphite/datasource.ts
View file @
7a2e8324
...
...
@@ -40,7 +40,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
};
if
(
options
.
panelId
)
{
httpOptions
.
requestId
=
'panel
'
+
options
.
panelId
;
httpOptions
.
requestId
=
this
.
name
+
'.panelId.
'
+
options
.
panelId
;
}
return
this
.
doGraphiteRequest
(
httpOptions
).
then
(
this
.
convertDataPointsToMs
);
...
...
public/app/plugins/datasource/graphite/specs/datasource_specs.ts
View file @
7a2e8324
...
...
@@ -5,7 +5,7 @@ import {GraphiteDatasource} from "../datasource";
describe
(
'graphiteDatasource'
,
function
()
{
var
ctx
=
new
helpers
.
ServiceTestContext
();
var
instanceSettings
:
any
=
{
url
:
[
''
]};
var
instanceSettings
:
any
=
{
url
:
[
''
]
,
name
:
'graphiteProd'
};
beforeEach
(
angularMocks
.
module
(
'grafana.core'
));
beforeEach
(
angularMocks
.
module
(
'grafana.services'
));
...
...
@@ -24,6 +24,7 @@ describe('graphiteDatasource', function() {
describe
(
'When querying influxdb with one target using query editor target spec'
,
function
()
{
var
query
=
{
panelId
:
3
,
rangeRaw
:
{
from
:
'now-1h'
,
to
:
'now'
},
targets
:
[{
target
:
'prod1.count'
},
{
target
:
'prod2.count'
}],
maxDataPoints
:
500
,
...
...
@@ -46,6 +47,10 @@ describe('graphiteDatasource', function() {
expect
(
requestOptions
.
url
).
to
.
be
(
'/render'
);
});
it
(
'should set unique requestId'
,
function
()
{
expect
(
requestOptions
.
requestId
).
to
.
be
(
'graphiteProd.panelId.3'
);
});
it
(
'should query correctly'
,
function
()
{
var
params
=
requestOptions
.
data
.
split
(
'&'
);
expect
(
params
).
to
.
contain
(
'target=prod1.count'
);
...
...
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