aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-15 21:02:50 +0200
committerTibor Frank <tifrank@cisco.com>2018-04-15 21:02:50 +0200
commitb6de6fb4bcf50cd347df181121602db9ac2c9eec (patch)
treef56e59b4a63f341f6e7159943a41f9bc28852391 /resources/tools
parent29035746be0145db942832b55555b695da2323d7 (diff)
CSIT-1041: Trending dashboard
Change-Id: I4cedfaab7f6e5d854a5107c4ac69413eb89186d0 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/generator_CPTA.py10
-rw-r--r--resources/tools/presentation/specification_CPTA.yaml12
2 files changed, 16 insertions, 6 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index c326aa634f..54679a26f6 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -237,6 +237,10 @@ def _generate_trending_traces(in_data, build_info, period, moving_win_size=10,
for key in in_data.keys()]
except KeyError:
data_x = [key for key in in_data.keys()]
+ # hover_text = ["vpp-build: {0}".format(x[1].split("~")[-1])
+ # for x in build_info.values()]
+ # data_x = [key for key in in_data.keys()]
+
data_y = [val for val in in_data.values()]
data_pd = pd.Series(data_y, index=data_x)
@@ -250,7 +254,9 @@ def _generate_trending_traces(in_data, build_info, period, moving_win_size=10,
item_pd = pd.Series([item[1], ],
index=["{0}/{1}".
format(item[0],
- build_info[str(item[0])][1].split("~")[-1]), ])
+ build_info[str(item[0])][1].split("~")[-1]),
+ ])
+ #item_pd = pd.Series([item[1], ], index=[item[0], ])
if item[0] in outliers.keys():
anomalies = anomalies.append(item_pd)
anomalies_res.append(0.0)
@@ -282,6 +288,8 @@ def _generate_trending_traces(in_data, build_info, period, moving_win_size=10,
"color": color,
"symbol": "circle",
},
+ # text=hover_text,
+ # hoverinfo="x+y+text+name"
)
traces = [trace_samples, ]
diff --git a/resources/tools/presentation/specification_CPTA.yaml b/resources/tools/presentation/specification_CPTA.yaml
index 2eb31709da..9ea9bc7bf4 100644
--- a/resources/tools/presentation/specification_CPTA.yaml
+++ b/resources/tools/presentation/specification_CPTA.yaml
@@ -78,7 +78,7 @@
plot-performance-trending:
csit-vpp-perf-mrr-daily-master:
start: 15
- end: "lastCompletedBuild" # "lastSuccessfulBuild" # take all from the 'start'
+ end: 17 #"lastCompletedBuild" # "lastSuccessfulBuild" # take all from the 'start'
plot-layouts:
plot-cpta:
@@ -102,7 +102,8 @@
showgrid: True
xaxis:
showticklabels: True
- title: "csit-vpp-perf-mrr-daily-master/vpp-build"
+ # title: "csit-vpp-perf-mrr-daily-master/vpp-build"
+ title: '<a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master" target="_blank">csit-vpp-perf-mrr-daily-master-build</a>/<a href="https://nexus.fd.io/content/repositories/fd.io.master.ubuntu.xenial.main/io/fd/vpp/vpp/" target="_blank">vpp-build</a>'
autorange: True
showgrid: True
gridcolor: "rgb(238, 238, 238)"
@@ -110,13 +111,14 @@
fixedrange: False
zeroline: False
tickcolor: "rgb(238, 238, 238)"
+ # tickangle: 0
showline: True
linewidth: 1
autotick: True
margin:
r: 20
- b: 50
- t: 0
+ b: 100
+ t: 5
l: 70
legend:
orientation: "h"
@@ -191,7 +193,7 @@
builds:
csit-vpp-perf-mrr-daily-master:
start: 15
- end: "lastCompletedBuild" # take all from the 'start'
+ end: 17 #"lastCompletedBuild" # take all from the 'start'
-
type: "output"