mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added throughput units.
This commit is contained in:
parent
d7ee7cb88f
commit
b678daa744
@ -344,6 +344,12 @@ function($, _) {
|
|||||||
kbn.valueFormats.bps = kbn.formatBuilders.decimalSIPrefix('bps');
|
kbn.valueFormats.bps = kbn.formatBuilders.decimalSIPrefix('bps');
|
||||||
kbn.valueFormats.Bps = kbn.formatBuilders.decimalSIPrefix('Bps');
|
kbn.valueFormats.Bps = kbn.formatBuilders.decimalSIPrefix('Bps');
|
||||||
|
|
||||||
|
// Throughput
|
||||||
|
kbn.valueFormats.ops = kbn.formatBuilders.fixedUnit('ops');
|
||||||
|
kbn.valueFormats.rps = kbn.formatBuilders.fixedUnit('rps');
|
||||||
|
kbn.valueFormats.wps = kbn.formatBuilders.fixedUnit('wps');
|
||||||
|
kbn.valueFormats.iops = kbn.formatBuilders.fixedUnit('iops');
|
||||||
|
|
||||||
// Energy
|
// Energy
|
||||||
kbn.valueFormats.watt = kbn.formatBuilders.decimalSIPrefix('W');
|
kbn.valueFormats.watt = kbn.formatBuilders.decimalSIPrefix('W');
|
||||||
kbn.valueFormats.kwatt = kbn.formatBuilders.decimalSIPrefix('W', 1);
|
kbn.valueFormats.kwatt = kbn.formatBuilders.decimalSIPrefix('W', 1);
|
||||||
@ -522,6 +528,15 @@ function($, _) {
|
|||||||
{text: 'bytes/sec', value: 'Bps'},
|
{text: 'bytes/sec', value: 'Bps'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: 'throughput',
|
||||||
|
submenu: [
|
||||||
|
{text: 'ops/sec (ops)', value: 'ops' },
|
||||||
|
{text: 'reads/sec (rps)', value: 'rps' },
|
||||||
|
{text: 'writes/sec (wps)', value: 'wps' },
|
||||||
|
{text: 'I/O ops/sec (iops)', value: 'iops'},
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: 'length',
|
text: 'length',
|
||||||
submenu: [
|
submenu: [
|
||||||
@ -576,7 +591,7 @@ function($, _) {
|
|||||||
{text: 'Inches of mercury', value: 'pressurehg' },
|
{text: 'Inches of mercury', value: 'pressurehg' },
|
||||||
{text: 'PSI', value: 'pressurepsi' },
|
{text: 'PSI', value: 'pressurepsi' },
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user