mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-06-28 01:07:03 +00:00
rrd graph peer display
This commit is contained in:
parent
5b0ab72c49
commit
590e86b331
@ -14,9 +14,6 @@ RUN apt-get update && apt-get install -y \
|
|||||||
openssl \
|
openssl \
|
||||||
dnsutils \
|
dnsutils \
|
||||||
rrdtool \
|
rrdtool \
|
||||||
gcc \
|
|
||||||
librrd-dev \
|
|
||||||
python3-dev \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# those are the really necessary packages
|
# those are the really necessary packages
|
||||||
|
@ -11,7 +11,6 @@ pypng==0.20220715.0
|
|||||||
pytz==2024.2
|
pytz==2024.2
|
||||||
qrcode==8.0
|
qrcode==8.0
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
rrdtool-bindings==0.2.0
|
|
||||||
sqlparse==0.5.3
|
sqlparse==0.5.3
|
||||||
typing_extensions==4.12.2
|
typing_extensions==4.12.2
|
||||||
urllib3==2.3.0
|
urllib3==2.3.0
|
||||||
|
@ -47,6 +47,11 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<img src="/rrd/graph/?peer={{ current_peer.uuid }}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
@ -60,9 +60,11 @@ def view_rrd_graph(request):
|
|||||||
"VDEF:tx_total=tx_mb,TOTAL",
|
"VDEF:tx_total=tx_mb,TOTAL",
|
||||||
"VDEF:rx_total=rx_mb,TOTAL",
|
"VDEF:rx_total=rx_mb,TOTAL",
|
||||||
"LINE1:txdata#FF0000:Transmitted ",
|
"LINE1:txdata#FF0000:Transmitted ",
|
||||||
"GPRINT:tx_total:Total Tx\\: %6.2lf MB",
|
"GPRINT:tx_total:%6.2lf MB",
|
||||||
|
"COMMENT:\\n",
|
||||||
"LINE1:rxdata#0000FF:Received ",
|
"LINE1:rxdata#0000FF:Received ",
|
||||||
"GPRINT:rx_total:Total Rx\\: %6.2lf MB"
|
"GPRINT:rx_total:%6.2lf MB",
|
||||||
|
"COMMENT:\\n"
|
||||||
]
|
]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user