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
867e3334
Commit
867e3334
authored
May 25, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2045 from robertjakub/master
add pps (packets per second) format
parents
de683b33
3dc2a114
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
public/app/components/kbn.js
+2
-0
public/app/panels/graph/graph.js
+3
-0
No files found.
public/app/components/kbn.js
View file @
867e3334
...
...
@@ -383,6 +383,7 @@ function($, _, moment) {
kbn
.
valueFormats
.
mbytes
=
kbn
.
formatFuncCreator
(
1024
,
[
' MiB'
,
' GiB'
,
' TiB'
,
' PiB'
,
' EiB'
,
' ZiB'
,
' YiB'
]);
kbn
.
valueFormats
.
gbytes
=
kbn
.
formatFuncCreator
(
1024
,
[
' GiB'
,
' TiB'
,
' PiB'
,
' EiB'
,
' ZiB'
,
' YiB'
]);
kbn
.
valueFormats
.
bps
=
kbn
.
formatFuncCreator
(
1000
,
[
' bps'
,
' Kbps'
,
' Mbps'
,
' Gbps'
,
' Tbps'
,
' Pbps'
,
' Ebps'
,
' Zbps'
,
' Ybps'
]);
kbn
.
valueFormats
.
pps
=
kbn
.
formatFuncCreator
(
1000
,
[
' pps'
,
' Kpps'
,
' Mpps'
,
' Gpps'
,
' Tpps'
,
' Ppps'
,
' Epps'
,
' Zpps'
,
' Ypps'
]);
kbn
.
valueFormats
.
Bps
=
kbn
.
formatFuncCreator
(
1000
,
[
' Bps'
,
' KBps'
,
' MBps'
,
' GBps'
,
' TBps'
,
' PBps'
,
' EBps'
,
' ZBps'
,
' YBps'
]);
kbn
.
valueFormats
.
short
=
kbn
.
formatFuncCreator
(
1000
,
[
''
,
' K'
,
' Mil'
,
' Bil'
,
' Tri'
,
' Quadr'
,
' Quint'
,
' Sext'
,
' Sept'
]);
kbn
.
valueFormats
.
joule
=
kbn
.
formatFuncCreator
(
1000
,
[
' J'
,
' kJ'
,
' MJ'
,
' GJ'
,
' TJ'
,
' PJ'
,
' EJ'
,
' ZJ'
,
' YJ'
]);
...
...
@@ -564,6 +565,7 @@ function($, _, moment) {
{
text
:
'data rate'
,
submenu
:
[
{
text
:
'packets/sec'
,
value
:
'pps'
},
{
text
:
'bits/sec'
,
value
:
'bps'
},
{
text
:
'bytes/sec'
,
value
:
'Bps'
},
]
...
...
public/app/panels/graph/graph.js
View file @
867e3334
...
...
@@ -480,6 +480,9 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
case
'bps'
:
url
+=
'&yUnitSystem=si'
;
break
;
case
'pps'
:
url
+=
'&yUnitSystem=si'
;
break
;
case
'Bps'
:
url
+=
'&yUnitSystem=si'
;
break
;
...
...
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