fix(XapiStats/iowait): don't scale XAPI values (#3079)

Fixes #2969
This commit is contained in:
badrAZ 2018-06-19 16:16:07 +02:00 committed by Julien Fontanet
parent 4830ac9623
commit bebb9bf0df
3 changed files with 22 additions and 6 deletions

View File

@ -20,6 +20,7 @@
- New VM with Self: filter out networks that are not in the template's pool [#3011](https://github.com/vatesfr/xen-orchestra/issues/3011)
- [Backup NG] Auto-detect when a full export is necessary.
- Fix Load Balancer [#3075](https://github.com/vatesfr/xen-orchestra/issues/3075#event-1685469551) [#3026](https://github.com/vatesfr/xen-orchestra/issues/3026)
- [SR stats] Don't scale XAPI iowait values [#2969](https://github.com/vatesfr/xen-orchestra/issues/2969)
## **5.20.0** (2018-05-31)

View File

@ -195,7 +195,6 @@ const STATS = {
iowait: {
test: /^iowait_(\w+)$/,
getPath: matches => ['iowait', matches[1]],
transformValue: value => value * 1e2,
},
},
vm: {

View File

@ -596,7 +596,11 @@ export const IopsLineChart = injectIntl(
data: propTypes.array.isRequired,
options: propTypes.object,
})(({ addSumSeries, data, options = {}, intl }) => {
const { endTimestamp, interval, stats: { iops } } = data
const {
endTimestamp,
interval,
stats: { iops },
} = data
const { length } = get(iops, 'r')
@ -635,7 +639,11 @@ export const IoThroughputChart = injectIntl(
data: propTypes.array.isRequired,
options: propTypes.object,
})(({ addSumSeries, data, options = {}, intl }) => {
const { endTimestamp, interval, stats: { ioThroughput } } = data
const {
endTimestamp,
interval,
stats: { ioThroughput },
} = data
const { length } = get(ioThroughput, 'r') || []
@ -674,7 +682,11 @@ export const LatencyChart = injectIntl(
data: propTypes.array.isRequired,
options: propTypes.object,
})(({ addSumSeries, data, options = {}, intl }) => {
const { endTimestamp, interval, stats: { latency } } = data
const {
endTimestamp,
interval,
stats: { latency },
} = data
const { length } = get(latency, 'r') || []
@ -713,7 +725,11 @@ export const IowaitChart = injectIntl(
data: propTypes.array.isRequired,
options: propTypes.object,
})(({ addSumSeries, data, options = {}, intl }) => {
const { endTimestamp, interval, stats: { iowait } } = data
const {
endTimestamp,
interval,
stats: { iowait },
} = data
const { length } = iowait[Object.keys(iowait)[0]] || []
@ -737,7 +753,7 @@ export const IowaitChart = injectIntl(
nValues: length,
endTimestamp,
interval,
valueTransform: value => `${round(value, 2)}%`,
valueTransform: value => `${round(value, 3)}%`,
}),
...options,
}}