From ca22f0f7cfe6537fa4a991295763de476fe5fb88 Mon Sep 17 00:00:00 2001 From: John-Paul Robinson <jpr@uab.edu> Date: Tue, 25 Mar 2025 19:29:40 -0500 Subject: [PATCH] Update BCM fetch with novalidate The rest of the notebook is pretty much the same but with different date values for the queries. --- explore-power-stats.ipynb | 43 +++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/explore-power-stats.ipynb b/explore-power-stats.ipynb index f1ed3fb..11ecd3d 100644 --- a/explore-power-stats.ipynb +++ b/explore-power-stats.ipynb @@ -103,7 +103,7 @@ "#\n", "# define the verify bundle via verify, note False means do not verify\n", "# https://stackoverflow.com/a/48636689/8928529\n", - "response = requests.get('https://master:8081/rest/v1/monitoring/latest', params=params, cert=cert, verify='cheaha-cmd-cabundle.pem')" + "response = requests.get('https://master:8081/rest/v1/monitoring/latest', params=params, cert=cert, verify=False)" ] }, { @@ -148,6 +148,15 @@ "power/count" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "count" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -184,7 +193,7 @@ "metadata": {}, "outputs": [], "source": [ - "response = requests.get('https://master:8081/rest/v1/monitoring/dump', params=params, cert=cert, verify='cheaha-cmd-cabundle.pem')" + "response = requests.get('https://master:8081/rest/v1/monitoring/dump', params=params, cert=cert, verify=False)" ] }, { @@ -219,6 +228,15 @@ "df" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "df " + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -264,7 +282,7 @@ "source": [ "# improve performace by providing format string to avoid per-entry parsing deduction\n", "\n", - "df.loc['datetime'] = pd.to_datetime(df.time, format=\"%Y/%m/%d %H:%M:%S\")" + "df['datetime'] = pd.to_datetime(df.time, format=\"%Y/%m/%d %H:%M:%S\")" ] }, { @@ -379,6 +397,15 @@ "hourly" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "hourly[\"sum\"].plot()" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -464,7 +491,7 @@ "metadata": {}, "outputs": [], "source": [ - "daily.loc['2020-07-05']" + "daily.loc['2020-10-05']" ] }, { @@ -503,7 +530,7 @@ "metadata": {}, "outputs": [], "source": [ - "daily.loc['2020-06', 'raw'].plot(marker='.', alpha=0.5, linestyle='None')" + "daily.loc['2020-9', 'raw'].plot(marker='.', alpha=0.5, linestyle='None')" ] }, { @@ -512,7 +539,7 @@ "metadata": {}, "outputs": [], "source": [ - "daily.loc['2020-06-14', 'raw'].plot(marker='.', alpha=0.5, linestyle='None')" + "daily.loc['2020-10-14', 'raw'].plot(marker='.', alpha=0.5, linestyle='None')" ] }, { @@ -600,7 +627,7 @@ "metadata": {}, "outputs": [], "source": [ - "node=df[df.entity=='c0002']" + "node=df[df.entity=='c0149']" ] }, { @@ -695,7 +722,7 @@ "metadata": {}, "outputs": [], "source": [ - "node.loc['2020-06-15':'2020-06-16', 'raw'].plot(marker='o', linestyle='-')" + "node.loc['2020-01-15':'2021-2-16', 'raw'].plot(marker='o', linestyle='-')" ] }, { -- GitLab