Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions portal-ui/src/screens/Console/Dashboard/Prometheus/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ const niceDaysFromNS = (seconds: string) => {
return niceDays(seconds, 'ns');
}

const roundNumber = (value: string) => {return parseInt(value).toString(10)};

export const panelsConfiguration: IDashboardPanel[] = [
{
title: "Uptime",
Expand Down Expand Up @@ -471,8 +473,8 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-10",
disableYAxis: true,
xAxisFormatter: getTimeFromTimestamp,
yAxisFormatter: niceBytes,
},
{
title: "Total Open FDs",
Expand Down Expand Up @@ -505,7 +507,7 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-13",
disableYAxis: true,
yAxisFormatter: roundNumber,
xAxisFormatter: getTimeFromTimestamp,
},
{
Expand All @@ -521,7 +523,6 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-14",
yAxisFormatter: niceBytes,
xAxisFormatter: getTimeFromTimestamp,
},
{
Expand All @@ -538,6 +539,7 @@ export const panelsConfiguration: IDashboardPanel[] = [
type: widgetType.linearGraph,
layoutIdentifier: "panel-15",
xAxisFormatter: getTimeFromTimestamp,
yAxisFormatter: niceBytes,
},
{
title: "Internode Data Transfer",
Expand Down Expand Up @@ -598,7 +600,6 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-22",
disableYAxis: true,
xAxisFormatter: getTimeFromTimestamp,
},
{
Expand All @@ -614,7 +615,6 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-23",
disableYAxis: true,
xAxisFormatter: getTimeFromTimestamp,
yAxisFormatter: niceBytes,
},
Expand All @@ -631,7 +631,6 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-24",
disableYAxis: true,
xAxisFormatter: getTimeFromTimestamp,
yAxisFormatter: niceBytes,
},
Expand Down Expand Up @@ -664,7 +663,7 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-26",
disableYAxis: true,
yAxisFormatter: roundNumber,
xAxisFormatter: getTimeFromTimestamp,
},
{
Expand All @@ -680,7 +679,7 @@ export const panelsConfiguration: IDashboardPanel[] = [
],
type: widgetType.linearGraph,
layoutIdentifier: "panel-27",
disableYAxis: true,
yAxisFormatter: roundNumber,
xAxisFormatter: getTimeFromTimestamp,
},
{
Expand Down