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
579b3675
Commit
579b3675
authored
May 13, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into development
parents
9e5a8c3f
e5021157
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
11 deletions
+29
-11
CHANGELOG.md
+5
-0
public/app/features/panel/metrics_ds_selector.ts
+1
-1
public/app/plugins/datasource/influxdb/datasource.ts
+7
-3
public/app/plugins/panel/graph/graph.js
+16
-7
No files found.
CHANGELOG.md
View file @
579b3675
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
*
**Templating**
: Fixed issue mixing row repeat and panel repeats, fixes
[
#4988
](
https://github.com/grafana/grafana/issues/4988
)
*
**Templating**
: Fixed issue mixing row repeat and panel repeats, fixes
[
#4988
](
https://github.com/grafana/grafana/issues/4988
)
*
**Templating**
: Fixed issue detecting dependencies in nested variables, fixes
[
#4987
](
https://github.com/grafana/grafana/issues/4987
)
, fixes
[
#4986
](
https://github.com/grafana/grafana/issues/4986
)
*
**Templating**
: Fixed issue detecting dependencies in nested variables, fixes
[
#4987
](
https://github.com/grafana/grafana/issues/4987
)
, fixes
[
#4986
](
https://github.com/grafana/grafana/issues/4986
)
*
**Graph**
: Fixed broken PNG rendering in graph panel, fixes
[
#5025
](
https://github.com/grafana/grafana/issues/5025
)
*
**Graph**
: Fixed broken xaxis on graph panel, fixes
[
#5024
](
https://github.com/grafana/grafana/issues/5024
)
5024
*
**Influxdb**
: Fixes crash when hiding middle serie, fixes
[
#5005
](
https://github.com/grafana/grafana/issues/5005
)
# 3.0.1 Stable (2016-05-11)
# 3.0.1 Stable (2016-05-11)
...
...
public/app/features/panel/metrics_ds_selector.ts
View file @
579b3675
...
@@ -10,7 +10,7 @@ var template = `
...
@@ -10,7 +10,7 @@ var template = `
<div class="gf-form-inline">
<div class="gf-form-inline">
<div class="gf-form">
<div class="gf-form">
<label class="gf-form-label">
<label class="gf-form-label">
<i class="icon-gf icon-gf-datasource"></i>
<i class="icon-gf icon-gf-datasource
s
"></i>
</label>
</label>
<label class="gf-form-label">
<label class="gf-form-label">
Panel data source
Panel data source
...
...
public/app/plugins/datasource/influxdb/datasource.ts
View file @
579b3675
...
@@ -45,7 +45,7 @@ export default class InfluxDatasource {
...
@@ -45,7 +45,7 @@ export default class InfluxDatasource {
var
i
,
y
;
var
i
,
y
;
var
allQueries
=
_
.
map
(
options
.
targets
,
(
target
)
=>
{
var
allQueries
=
_
.
map
(
options
.
targets
,
(
target
)
=>
{
if
(
target
.
hide
)
{
return
[]
;
}
if
(
target
.
hide
)
{
return
""
;
}
queryTargets
.
push
(
target
);
queryTargets
.
push
(
target
);
...
@@ -54,8 +54,12 @@ export default class InfluxDatasource {
...
@@ -54,8 +54,12 @@ export default class InfluxDatasource {
var
query
=
queryModel
.
render
(
true
);
var
query
=
queryModel
.
render
(
true
);
query
=
query
.
replace
(
/
\$
interval/g
,
(
target
.
interval
||
options
.
interval
));
query
=
query
.
replace
(
/
\$
interval/g
,
(
target
.
interval
||
options
.
interval
));
return
query
;
return
query
;
}).
reduce
((
acc
,
current
)
=>
{
}).
join
(
";"
);
if
(
current
!==
""
)
{
acc
+=
";"
+
current
;
}
return
acc
;
});
// replace grafana variables
// replace grafana variables
allQueries
=
allQueries
.
replace
(
/
\$
timeFilter/g
,
timeFilter
);
allQueries
=
allQueries
.
replace
(
/
\$
timeFilter/g
,
timeFilter
);
...
...
public/app/plugins/panel/graph/graph.js
View file @
579b3675
...
@@ -282,7 +282,7 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
...
@@ -282,7 +282,7 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
options
.
xaxis
=
{
options
.
xaxis
=
{
timezone
:
dashboard
.
getTimezone
(),
timezone
:
dashboard
.
getTimezone
(),
show
:
panel
[
'x-axis'
]
,
show
:
panel
.
xaxis
.
show
,
mode
:
"time"
,
mode
:
"time"
,
min
:
min
,
min
:
min
,
max
:
max
,
max
:
max
,
...
@@ -452,12 +452,21 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
...
@@ -452,12 +452,21 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
url
+=
panel
.
fill
!==
0
?
(
'&areaAlpha='
+
(
panel
.
fill
/
10
).
toFixed
(
1
))
:
''
;
url
+=
panel
.
fill
!==
0
?
(
'&areaAlpha='
+
(
panel
.
fill
/
10
).
toFixed
(
1
))
:
''
;
url
+=
panel
.
linewidth
!==
0
?
'&lineWidth='
+
panel
.
linewidth
:
''
;
url
+=
panel
.
linewidth
!==
0
?
'&lineWidth='
+
panel
.
linewidth
:
''
;
url
+=
panel
.
legend
.
show
?
'&hideLegend=false'
:
'&hideLegend=true'
;
url
+=
panel
.
legend
.
show
?
'&hideLegend=false'
:
'&hideLegend=true'
;
url
+=
panel
.
grid
.
leftMin
!==
null
?
'&yMin='
+
panel
.
grid
.
leftMin
:
''
;
url
+=
panel
.
grid
.
leftMax
!==
null
?
'&yMax='
+
panel
.
grid
.
leftMax
:
''
;
if
(
panel
.
yaxes
&&
panel
.
yaxes
.
length
>
0
)
{
url
+=
panel
.
grid
.
rightMin
!==
null
?
'&yMin='
+
panel
.
grid
.
rightMin
:
''
;
var
showYaxis
=
false
;
url
+=
panel
.
grid
.
rightMax
!==
null
?
'&yMax='
+
panel
.
grid
.
rightMax
:
''
;
for
(
var
i
=
0
;
panel
.
yaxes
.
length
>
i
;
i
++
)
{
url
+=
panel
[
'x-axis'
]
?
''
:
'&hideAxes=true'
;
if
(
panel
.
yaxes
[
i
].
show
)
{
url
+=
panel
[
'y-axis'
]
?
''
:
'&hideYAxis=true'
;
url
+=
(
panel
.
yaxes
[
i
].
min
!==
null
&&
panel
.
yaxes
[
i
].
min
!==
undefined
)
?
'&yMin='
+
panel
.
yaxes
[
i
].
min
:
''
;
url
+=
(
panel
.
yaxes
[
i
].
max
!==
null
&&
panel
.
yaxes
[
i
].
max
!==
undefined
)
?
'&yMax='
+
panel
.
yaxes
[
i
].
max
:
''
;
showYaxis
=
true
;
break
;
}
}
url
+=
showYaxis
?
''
:
'&hideYAxis=true'
;
}
url
+=
panel
.
xaxis
.
show
?
''
:
'&hideAxes=true'
;
switch
(
panel
.
yaxes
[
0
].
format
)
{
switch
(
panel
.
yaxes
[
0
].
format
)
{
case
'bytes'
:
case
'bytes'
:
...
...
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