v.0.2.1
This commit is contained in:
@@ -4,7 +4,7 @@ ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
|
||||
LABEL authors="tebarius"
|
||||
LABEL version="0.2.0"
|
||||
LABEL version="0.2.1"
|
||||
LABEL description="netdata-DocRudi"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -5,6 +5,8 @@ DocRudi is a flask-app that uses plotly (https://plotly.com/) to display
|
||||
graphs of CPU-Utilization and Memory-Use of Docker-Containers by getting this
|
||||
metrics from netdata (https://www.netdata.cloud).
|
||||
|
||||

|
||||
|
||||
## build
|
||||
to build container from source:
|
||||
1. clone repository
|
||||
|
||||
BIN
Screenshot.png
Normal file
BIN
Screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 300 KiB |
@@ -44,8 +44,10 @@ def get_docker_data(q_context, q_dimension):
|
||||
def process_label(label):
|
||||
parts = label.split('@')[0].split('.')
|
||||
if parts and parts[0].startswith('cgroup_'):
|
||||
if parts[1] =='mem_usage':
|
||||
if parts[1].startswith('mem_usage'):
|
||||
return f'mem_{parts[0][7:]}'
|
||||
elif parts[1].startswith('cpu'):
|
||||
return f'cpu_{parts[0][7:]}'
|
||||
else:
|
||||
return f'{parts[1]}_{parts[0][7:]}'
|
||||
return label
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
{% if site_refresh > 0 %}
|
||||
<meta http-equiv="refresh" content="{{ site_refresh }}">
|
||||
{% endif %}
|
||||
<title>Docker Container CPU-Nutzung</title>
|
||||
<title>DocRudi</title>
|
||||
</head>
|
||||
<body style="background-color:#64a0d6">
|
||||
<h1>Docker Container CPU/MEM from netdata: <a href="{{ netdata_host }}" target="_blank">{{ netdata_host }}</a></h1>
|
||||
<h1>DocRudi: CPU/MEM from netdata: <a href="{{ netdata_host }}" target="_blank">{{ netdata_host }}</a></h1>
|
||||
<div id="plot">
|
||||
{{ plot | safe }};
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user