diff --git a/dashboard/src/components/GraphItem.vue b/dashboard/src/components/GraphItem.vue index c81b9ea20..e54ff1c9b 100644 --- a/dashboard/src/components/GraphItem.vue +++ b/dashboard/src/components/GraphItem.vue @@ -2,7 +2,7 @@ diff --git a/dashboard/src/components/SystemMetrics.vue b/dashboard/src/components/SystemMetrics.vue index f2f2f1242..0cebe66f5 100644 --- a/dashboard/src/components/SystemMetrics.vue +++ b/dashboard/src/components/SystemMetrics.vue @@ -14,7 +14,7 @@ import GraphItem from './GraphItem.vue'; const systemModel = SystemModel.create(); const periods = [ - { hours: 0, label: t('app.graphs.period.live'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' }, + { hours: 0, label: t('app.graphs.period.live'), format: 'hh:mm A', tooltipFormat: 'hh:mm:ss A' }, { hours: 1, label: t('app.graphs.period.1h'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' }, { hours: 6, label: t('app.graphs.period.6h'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' }, { hours: 12, label: t('app.graphs.period.12h'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' }, @@ -60,8 +60,6 @@ async function liveRefresh() { }; } -// CPU and Memory graph have known min/max set and auto-scaling gets disabled -// Disk and Network graphs auto-scale the y values. async function onPeriodChange() { if (metricStream) { metricStream.close(); diff --git a/dashboard/src/components/app/Graphs.vue b/dashboard/src/components/app/Graphs.vue index 12eef40ef..d62b4fe2b 100644 --- a/dashboard/src/components/app/Graphs.vue +++ b/dashboard/src/components/app/Graphs.vue @@ -52,7 +52,6 @@ async function liveRefresh() { const data = JSON.parse(message.data); cpuGraphItem.value.pushData(data.cpu); - console.log(data.cpu); memoryGraphItem.value.pushData(data.memory); diskGraphItem.value.pushData(data.blockReadRate, data.blockWriteRate); networkGraphItem.value.pushData(data.networkReadRate, data.networkWriteRate); diff --git a/src/metrics.js b/src/metrics.js index 1eb7dd992..e95bc081c 100644 --- a/src/metrics.js +++ b/src/metrics.js @@ -348,6 +348,7 @@ async function readSystemFromGraphite(options) { }; } +// CPU: stress --cpu 2 --timeout 60 async function getSystem(options) { assert.strictEqual(typeof options, 'object');