v.0.2.1
This commit is contained in:
@@ -4,7 +4,7 @@ ARG TARGETPLATFORM
|
|||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
|
|
||||||
LABEL authors="tebarius"
|
LABEL authors="tebarius"
|
||||||
LABEL version="0.2.0"
|
LABEL version="0.2.1"
|
||||||
LABEL description="netdata-DocRudi"
|
LABEL description="netdata-DocRudi"
|
||||||
|
|
||||||
WORKDIR /app
|
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
|
graphs of CPU-Utilization and Memory-Use of Docker-Containers by getting this
|
||||||
metrics from netdata (https://www.netdata.cloud).
|
metrics from netdata (https://www.netdata.cloud).
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## build
|
## build
|
||||||
to build container from source:
|
to build container from source:
|
||||||
1. clone repository
|
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):
|
def process_label(label):
|
||||||
parts = label.split('@')[0].split('.')
|
parts = label.split('@')[0].split('.')
|
||||||
if parts and parts[0].startswith('cgroup_'):
|
if parts and parts[0].startswith('cgroup_'):
|
||||||
if parts[1] =='mem_usage':
|
if parts[1].startswith('mem_usage'):
|
||||||
return f'mem_{parts[0][7:]}'
|
return f'mem_{parts[0][7:]}'
|
||||||
|
elif parts[1].startswith('cpu'):
|
||||||
|
return f'cpu_{parts[0][7:]}'
|
||||||
else:
|
else:
|
||||||
return f'{parts[1]}_{parts[0][7:]}'
|
return f'{parts[1]}_{parts[0][7:]}'
|
||||||
return label
|
return label
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
{% if site_refresh > 0 %}
|
{% if site_refresh > 0 %}
|
||||||
<meta http-equiv="refresh" content="{{ site_refresh }}">
|
<meta http-equiv="refresh" content="{{ site_refresh }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<title>Docker Container CPU-Nutzung</title>
|
<title>DocRudi</title>
|
||||||
</head>
|
</head>
|
||||||
<body style="background-color:#64a0d6">
|
<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">
|
<div id="plot">
|
||||||
{{ plot | safe }};
|
{{ plot | safe }};
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user