Use RestAPI to read power consumption info for cluster nodes and generate usage reports. this is based on the [pandas time series tutorial by Jennifer Walker](https://www.dataquest.io/blog/tutorial-time-series-analysis-with-pandas/)
Use RestAPI to read power consumption info for cluster nodes and generate usage reports. this is based on the [pandas time series tutorial by Jennifer Walker](https://www.dataquest.io/blog/tutorial-time-series-analysis-with-pandas/)
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
```
import requests
import requests
import pprint
import pprint
import datetime
import datetime
import os
import os
import numpy as np
import numpy as np
import pandas as pd
import pandas as pd
import seaborn as sns
import seaborn as sns
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib.dates as mdates
```
```
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
```
plt.rcParams["figure.figsize"] = (20,6)
plt.rcParams["figure.figsize"] = (20,6)
```
```
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
Set up credentials to query RestAPI. Bright controls access based on the user identity. The user's cert.pem and cert.key are automatically generated but the cacert.pem needs to be constructed from the certs returned by the master.
Set up credentials to query RestAPI. Bright controls access based on the user identity. The user's cert.pem and cert.key are automatically generated but the cacert.pem needs to be constructed from the certs returned by the master.
This is just to see the data for each node in one plot and get a feel for how the nodes behave relative to each other. There is too much data to decern individual behavior of specific nodes
This is just to see the data for each node in one plot and get a feel for how the nodes behave relative to each other. There is too much data to decern individual behavior of specific nodes
but it does give a sense of how the total power adds up.
but it does give a sense of how the total power adds up.