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
beda3783
Commit
beda3783
authored
Feb 01, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #45, zero values treated as null values
parent
6734864a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
src/app/panels/graphite/module.js
+1
-1
src/app/panels/graphite/timeSeries.js
+1
-1
src/config.js
+0
-5
No files found.
src/app/panels/graphite/module.js
View file @
beda3783
...
@@ -338,7 +338,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
...
@@ -338,7 +338,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
var
time_series
=
new
timeSeries
.
ZeroFilled
(
tsOpts
);
var
time_series
=
new
timeSeries
.
ZeroFilled
(
tsOpts
);
_
.
each
(
targetData
.
datapoints
,
function
(
valueArray
)
{
_
.
each
(
targetData
.
datapoints
,
function
(
valueArray
)
{
if
(
valueArray
[
0
])
{
if
(
valueArray
[
0
]
!==
null
)
{
time_series
.
addValue
(
valueArray
[
1
]
*
1000
,
valueArray
[
0
]);
time_series
.
addValue
(
valueArray
[
1
]
*
1000
,
valueArray
[
0
]);
}
}
});
});
...
...
src/app/panels/graphite/timeSeries.js
View file @
beda3783
...
@@ -218,7 +218,7 @@ function (_, Interval) {
...
@@ -218,7 +218,7 @@ function (_, Interval) {
ts
.
ZeroFilled
.
prototype
.
_getNoZeroFlotPairs
=
function
(
result
,
time
)
{
ts
.
ZeroFilled
.
prototype
.
_getNoZeroFlotPairs
=
function
(
result
,
time
)
{
// add the current time
// add the current time
if
(
this
.
_data
[
time
]){
if
(
this
.
_data
[
time
]
!==
null
){
result
.
push
([
time
,
this
.
_data
[
time
]]);
result
.
push
([
time
,
this
.
_data
[
time
]]);
}
}
...
...
src/config.js
View file @
beda3783
...
@@ -16,11 +16,6 @@ function (Settings) {
...
@@ -16,11 +16,6 @@ function (Settings) {
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
/**
/**
If you have _all query disabled on Elastic search then this must be set to true
https://github.com/torkelo/grafana/issues/24
**/
elasticsearch_all_disabled
:
false
,
/**
* graphite-web url:
* graphite-web url:
* For Basic authentication use: http://username:password@domain.com
* For Basic authentication use: http://username:password@domain.com
* Basic authentication requires special HTTP headers to be configured
* Basic authentication requires special HTTP headers to be configured
...
...
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