summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/util/available-metrics.js
blob: e6bb902f0e82169b8970c000cb4ac378fb348df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
export const METRIC_GROUPS = {
    'Host Metrics': [
        'total_overcommitted_burst',
        'total_power_draw',
        'total_failure_vm_slices',
        'total_granted_burst',
        'total_interfered_burst',
        'total_requested_burst',
        'mean_cpu_usage',
        'mean_cpu_demand',
        'mean_num_deployed_images',
        'max_num_deployed_images',
    ],
    'Compute Service Metrics': ['total_vms_submitted', 'total_vms_queued', 'total_vms_finished', 'total_vms_failed'],
}

export const AVAILABLE_METRICS = [
    'mean_cpu_usage',
    'mean_cpu_demand',
    'total_requested_burst',
    'total_granted_burst',
    'total_overcommitted_burst',
    'total_interfered_burst',
    'total_power_draw',
    'total_failure_vm_slices',
    'mean_num_deployed_images',
    'max_num_deployed_images',
    'total_vms_submitted',
    'total_vms_queued',
    'total_vms_finished',
    'total_vms_failed',
]

export const METRIC_NAMES_SHORT = {
    total_overcommitted_burst: 'Overcomm. CPU Cycles',
    total_granted_burst: 'Granted CPU Cycles',
    total_requested_burst: 'Requested CPU Cycles',
    total_interfered_burst: 'Interfered CPU Cycles',
    total_power_draw: 'Total Power Consumption',
    mean_cpu_usage: 'Mean Host CPU Usage',
    mean_cpu_demand: 'Mean Host CPU Demand',
    mean_num_deployed_images: 'Mean Num. Deployed Images Per Host',
    max_num_deployed_images: 'Max. Num. Deployed Images Per Host',
    total_failure_vm_slices: 'Total Num. Failed VM Slices',
    total_vms_submitted: 'VMs Submitted',
    total_vms_queued: 'VMs Queued',
    total_vms_finished: 'VMs Finished',
    total_vms_failed: 'VMs Failed',
}

export const METRIC_NAMES = {
    total_overcommitted_burst: 'Overcommitted CPU Cycles',
    total_granted_burst: 'Granted CPU Cycles',
    total_requested_burst: 'Requested CPU Cycles',
    total_interfered_burst: 'Interfered CPU Cycles',
    total_power_draw: 'Total Power Consumption',
    mean_cpu_usage: 'Mean Host CPU Usage',
    mean_cpu_demand: 'Mean Host CPU Demand',
    mean_num_deployed_images: 'Mean Number of Deployed Images Per Host',
    max_num_deployed_images: 'Maximum Number Deployed Images Per Host',
    total_failure_vm_slices: 'Failed VM Slices',
    total_vms_submitted: 'VMs Submitted',
    total_vms_queued: 'VMs Queued',
    total_vms_finished: 'VMs Finished',
    total_vms_failed: 'VMs Failed',
}

export const METRIC_UNITS = {
    total_overcommitted_burst: 'MFLOP',
    total_granted_burst: 'MFLOP',
    total_requested_burst: 'MFLOP',
    total_interfered_burst: 'MFLOP',
    total_power_draw: 'Wh',
    mean_cpu_usage: 'MHz',
    mean_cpu_demand: 'MHz',
    mean_num_deployed_images: 'VMs',
    max_num_deployed_images: 'VMs',
    total_failure_vm_slices: 'VM Slices',
    total_vms_submitted: 'VMs',
    total_vms_queued: 'VMs',
    total_vms_finished: 'VMs',
    total_vms_failed: 'VMs',
}

export const METRIC_DESCRIPTIONS = {
    total_overcommitted_burst:
        'The total CPU clock cycles lost due to overcommitting of resources. This metric is an indicator for resource overload.',
    total_requested_burst: 'The total CPU clock cycles that were requested by all virtual machines.',
    total_granted_burst: 'The total CPU clock cycles executed by the hosts.',
    total_interfered_burst: 'The total CPU clock cycles lost due to resource interference between virtual machines.',
    total_power_draw: 'The average power usage in watts.',
    mean_cpu_usage: 'The average amount of CPU clock cycles consumed by all virtual machines on a host.',
    mean_cpu_demand: 'The average amount of CPU clock cycles requested by all powered on virtual machines on a host.',
    mean_num_deployed_images: 'The average number of virtual machines deployed on a host.',
    max_num_deployed_images: 'The maximum number of virtual machines deployed at any time.',
    total_failure_vm_slices: 'The total amount of CPU clock cycles lost due to failure.',
    total_vms_submitted: 'The number of virtual machines scheduled by the compute service.',
    total_vms_queued:
        'The number of virtual machines still waiting to be scheduled by the compute service.',
    total_vms_finished: 'The number of virtual machines that completed.',
    total_vms_failed: 'The number of virtual machines that could not be scheduled.',
}