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
9eb7b192
Commit
9eb7b192
authored
May 20, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
06d63dda
441682b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
18 deletions
+9
-18
public/app/features/dashboard/shareModalCtrl.js
+1
-1
public/app/plugins/datasource/prometheus/datasource.ts
+8
-17
No files found.
public/app/features/dashboard/shareModalCtrl.js
View file @
9eb7b192
...
@@ -75,7 +75,7 @@ function (angular, _, require, config) {
...
@@ -75,7 +75,7 @@ function (angular, _, require, config) {
$scope
.
iframeHtml
=
'<iframe src="'
+
soloUrl
+
'" width="450" height="200" frameborder="0"></iframe>'
;
$scope
.
iframeHtml
=
'<iframe src="'
+
soloUrl
+
'" width="450" height="200" frameborder="0"></iframe>'
;
$scope
.
imageUrl
=
soloUrl
.
replace
(
'/dashboard-solo/'
,
'/render/dashboard-solo/'
);
$scope
.
imageUrl
=
soloUrl
.
replace
(
config
.
appSubUrl
+
'/dashboard-solo/'
,
config
.
appSubUrl
+
'/render/dashboard-solo/'
);
$scope
.
imageUrl
+=
'&width=1000'
;
$scope
.
imageUrl
+=
'&width=1000'
;
$scope
.
imageUrl
+=
'&height=500'
;
$scope
.
imageUrl
+=
'&height=500'
;
};
};
...
...
public/app/plugins/datasource/prometheus/datasource.ts
View file @
9eb7b192
...
@@ -256,23 +256,14 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
...
@@ -256,23 +256,14 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
return
this
.
renderTemplate
(
options
.
legendFormat
,
labelData
)
||
'{}'
;
return
this
.
renderTemplate
(
options
.
legendFormat
,
labelData
)
||
'{}'
;
};
};
this
.
renderTemplate
=
function
(
format
,
data
)
{
this
.
renderTemplate
=
function
(
aliasPattern
,
aliasData
)
{
var
originalSettings
=
_
.
templateSettings
;
var
aliasRegex
=
/
\{\{\s
*
(
.+
?)\s
*
\}\}
/g
;
_
.
templateSettings
=
{
return
aliasPattern
.
replace
(
aliasRegex
,
function
(
match
,
g1
)
{
interpolate
:
/
\{\{(
.+
?)\}\}
/g
if
(
aliasData
[
g1
])
{
};
return
aliasData
[
g1
];
}
var
template
=
_
.
template
(
templateSrv
.
replace
(
format
));
return
g1
;
var
result
;
});
try
{
result
=
template
(
data
);
}
catch
(
e
)
{
result
=
null
;
}
_
.
templateSettings
=
originalSettings
;
return
result
;
};
};
this
.
getOriginalMetricName
=
function
(
labelData
)
{
this
.
getOriginalMetricName
=
function
(
labelData
)
{
...
...
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