mirror of https://github.com/Aidaho12/haproxy-wi
v3.5
parent
4a1a4008b5
commit
dd310f0404
|
@ -453,7 +453,10 @@ if form.getvalue('new_metrics'):
|
|||
sess_rate = ''
|
||||
|
||||
for i in metric:
|
||||
labels += str(i[5].split(' ')[1])+','
|
||||
label = str(i[5])
|
||||
label = label.split(' ')[1]
|
||||
label = label.split(':')
|
||||
labels += label[0]+':'+label[1]+','
|
||||
curr_con += str(i[1])+','
|
||||
curr_ssl_con += str(i[2])+','
|
||||
sess_rate += str(i[3])+','
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<table>
|
||||
<table style="min-width: 40%;">
|
||||
<tr class="overviewHead">
|
||||
<th colspan=13>Metrics</th>
|
||||
<th colspan=13 style="background-color: #d1ecf1">Metrics</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="padding10 first-collumn overviewTr" rowspan=2>Server</th>
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<style>
|
||||
iframe {
|
||||
border: none;
|
||||
padding: 10px;
|
||||
}
|
||||
table, th, tr, td {
|
||||
border: 1px solid #ddd;
|
||||
align: center;
|
||||
|
@ -12,6 +8,7 @@ table, th, tr, td {
|
|||
}
|
||||
th, tr, td {
|
||||
width: 6%;
|
||||
min-width: 3%;
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
|
@ -20,16 +17,19 @@ th, tr, td {
|
|||
<script src="/inc/chart.min.js"></script>
|
||||
<div id="table_metrics"></div>
|
||||
{% for s in servers %}
|
||||
<div class="chart-container" style="">
|
||||
<div class="chart-container">
|
||||
<canvas id="{{s.0}}" role="img"></canvas>
|
||||
</div>
|
||||
<script>
|
||||
getChartData('{{s.0}}')
|
||||
</script>
|
||||
{% endfor %}
|
||||
|
||||
<div id="metrics_iframe"></div>
|
||||
<script>
|
||||
function showMetrics() {
|
||||
{% for s in servers %}
|
||||
getChartData('{{s.0}}')
|
||||
{% endfor %}
|
||||
}
|
||||
showMetrics()
|
||||
loadMetrics()
|
||||
</script>
|
||||
{% endblock %}
|
|
@ -30,15 +30,18 @@
|
|||
<script src="/inc/chart.min.js"></script>
|
||||
|
||||
{% for s in servers %}
|
||||
<div class="chart-container" style="">
|
||||
<div class="chart-container">
|
||||
<canvas id="{{s.0}}" role="img"></canvas>
|
||||
</div>
|
||||
<script>
|
||||
getWafChartData('{{s.0}}')
|
||||
</script>
|
||||
{% endfor %}
|
||||
|
||||
<script>
|
||||
showOverviewWaf()
|
||||
function showWafMetrics() {
|
||||
{% for s in servers %}
|
||||
getWafChartData('{{s.0}}')
|
||||
{% endfor %}
|
||||
}
|
||||
showWafMetrics()
|
||||
showOverviewWaf()
|
||||
</script>
|
||||
{% endblock %}
|
|
@ -6,7 +6,6 @@ requests_toolbelt==0.8.0
|
|||
pyTelegramBotAPI==3.6.3
|
||||
dump==0.0.4
|
||||
networkx==2.1
|
||||
numpy==1.14.0
|
||||
matplotlib==2.1.2
|
||||
future==0.13.1
|
||||
mysql-connector-python==8.0.11
|
||||
|
|
Loading…
Reference in New Issue