Files
netdata-DocRudi/README.md
2024-11-24 20:36:11 +01:00

45 lines
1.8 KiB
Markdown

# DocRudi
__Doc__ -ker __Rudi__ -mentäres Monitoring
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).
![Screenshot.png](Screenshot.png)
## build
to build container from source:
1. clone repository
2. change `NETDATA_HOST: http://my-netdata-ip:19999` in docker-compose-build.yml
3. run `sudo docker compose -f docker-compose-build.yml build`
## run
### via docker run ..
`docker run -e NETDATA_HOST=http://url-of-your-netdata:19999 -p 19998:19998 gitea.tebarius.duckdns.org/tebarius/doc_rudi:latest`
### via docker compose ...
compose-file: (!!! change NETDATA_HOST to your Netdata-Address)
```
services:
doc_rudi:
image: gitea.tebarius.duckdns.org/tebarius/doc_rudi:latest
container_name: doc_rudi
restart: unless-stopped
ports:
- "19998:19998"
environment:
NETDATA_HOST: http://my-netdata-ip:19999 # default: http://localhost:19999
#NETDATA_QUERY_SECONDS: 200000 # default: 200000 (last how many seconds to get from netdata)
#NETDATA_QUERY_POINTS: 3000 # default: 3000 (how many points in a row for the query)
#SITE_REFRESH: 0 # default: 0 (seconds to refresh the dashboard-website, 0 = no refresh)
#SERVER_PORT: 19998 # default: 19998 (internal Port of Server)
```
## Environment-Variables
- __NETDATA_HOST: http://my-netdata-ip:19999__ _- default: http://localhost:19999_
- __NETDATA_QUERY_SECONDS: 200000__ _- default: 200000 (last how many seconds to get from netdata)_
- __NETDATA_QUERY_POINTS: 3000__ _- default: 3000 (how many points in a row for the query)_
- __SITE_REFRESH: 0__ _- default: 0 (seconds to refresh the dashboard-website, 0 = no refresh)_
- __SERVER_PORT: 19998__ _- default: 19998 (internal Port of Server)_