Classes | |
class | Prometheus |
Functions | |
float | compute_average_memory_usage (List[float] memory_data_list) |
float | compute_total_cpu_seconds (List[float] cpu_data_list) |
str | construct_container_matcher (List[str] container_list) |
Dict[str, List[str]] | construct_pod_dict (str node_info_file, List[str] pod_types) |
str | convert_UTC_to_epoch (str utc_timestamp) |
Dict[str, List[float]] | get_data_list_from_timeseries (Any data) |
None | main () |
float performance.prometheus.compute_average_memory_usage | ( | List[float] | memory_data_list | ) |
Computes the mean and for a given list of data.
Definition at line 194 of file prometheus.py.
float performance.prometheus.compute_total_cpu_seconds | ( | List[float] | cpu_data_list | ) |
Computes the total cpu seconds by CPUs[end]-CPUs[start].
Definition at line 189 of file prometheus.py.
str performance.prometheus.construct_container_matcher | ( | List[str] | container_list | ) |
Constructs the container matching string used in the prometheus query.
Definition at line 151 of file prometheus.py.
Dict[str, List[str]] performance.prometheus.construct_pod_dict | ( | str | node_info_file, |
List[str] | pod_types | ||
) |
Constructs a dict of pod names to be queried. Args: node_info_file: The file path contains the pod names to query. The pods' names are put into a Dict of list that keyed by the role name: clients, servers and driver.
Definition at line 199 of file prometheus.py.
str performance.prometheus.convert_UTC_to_epoch | ( | str | utc_timestamp | ) |
Converts a utc timestamp string to epoch time string.
Definition at line 225 of file prometheus.py.
Dict[str, List[float]] performance.prometheus.get_data_list_from_timeseries | ( | Any | data | ) |
Constructs a Dict as keys are the container names and values are a list of data taken from given timeseries data.
Definition at line 168 of file prometheus.py.
None performance.prometheus.main | ( | ) |
Definition at line 232 of file prometheus.py.