2019-10-12 21:52:04 +05:30
|
|
|
export const metricsWithData = [15, 16];
|
|
|
|
|
|
|
|
export const groups = [
|
|
|
|
{
|
|
|
|
panels: [
|
|
|
|
{
|
|
|
|
title: 'Memory Usage (Total)',
|
|
|
|
type: 'area-chart',
|
|
|
|
y_label: 'Total Memory Used',
|
|
|
|
weight: 4,
|
|
|
|
metrics: [
|
|
|
|
{
|
|
|
|
id: 'system_metrics_kubernetes_container_memory_total',
|
|
|
|
metric_id: 15,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Core Usage (Total)',
|
|
|
|
type: 'area-chart',
|
|
|
|
y_label: 'Total Cores',
|
|
|
|
weight: 3,
|
|
|
|
metrics: [
|
|
|
|
{
|
|
|
|
id: 'system_metrics_kubernetes_container_cores_total',
|
|
|
|
metric_id: 16,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const metrics = [
|
|
|
|
{
|
|
|
|
id: 'system_metrics_kubernetes_container_memory_total',
|
|
|
|
metric_id: 15,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'system_metrics_kubernetes_container_cores_total',
|
|
|
|
metric_id: 16,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
const result = [
|
2019-10-12 21:52:04 +05:30
|
|
|
{
|
2020-01-01 13:55:28 +05:30
|
|
|
values: [
|
|
|
|
['Mon', 1220],
|
|
|
|
['Tue', 932],
|
|
|
|
['Wed', 901],
|
|
|
|
['Thu', 934],
|
|
|
|
['Fri', 1290],
|
|
|
|
['Sat', 1330],
|
|
|
|
['Sun', 1320],
|
2019-10-12 21:52:04 +05:30
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const metricsData = [
|
|
|
|
{
|
|
|
|
metrics: [
|
|
|
|
{
|
|
|
|
metric_id: 15,
|
2020-01-01 13:55:28 +05:30
|
|
|
result,
|
2019-10-12 21:52:04 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
metrics: [
|
|
|
|
{
|
|
|
|
metric_id: 16,
|
2020-01-01 13:55:28 +05:30
|
|
|
result,
|
2019-10-12 21:52:04 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
export const initialState = () => ({
|
2019-12-26 22:10:19 +05:30
|
|
|
dashboard: {
|
|
|
|
panel_groups: [],
|
|
|
|
},
|
2019-10-12 21:52:04 +05:30
|
|
|
useDashboardEndpoint: true,
|
2020-01-01 13:55:28 +05:30
|
|
|
});
|