From ea1a556ebbeb197db2ef8eb992654edcb4da29de Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 10 Jan 2023 00:07:17 +0100 Subject: [PATCH] Added Monitor Docker & updated README.md --- .storage/lovelace.lovelace_settings | 4 ---- README.md | 6 +++--- components/monitor_docker.yaml | 31 +++++++++++++++++++++++++++++ configuration.yaml | 3 +++ log/history.yaml | 2 ++ log/logbook.yaml | 2 ++ log/recorder.yaml | 2 ++ 7 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 components/monitor_docker.yaml diff --git a/.storage/lovelace.lovelace_settings b/.storage/lovelace.lovelace_settings index c2ba7b7e..4021d18a 100644 --- a/.storage/lovelace.lovelace_settings +++ b/.storage/lovelace.lovelace_settings @@ -239,10 +239,6 @@ { "entity": "sensor.spare_door_battery", "name": "Spare Door" - }, - { - "entity": "sensor.wireless_button_battery", - "name": "Wireless Button" } ] }, diff --git a/README.md b/README.md index 40473960..dd26f1e6 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ My server is an Intel NUC (NUC10i5FNH) with [Proxmox Virtual Environment](https: ### Integrations * [browser_mod](https://github.com/thomasloven/hass-browser_mod) * [HACS](https://github.com/hacs/integration) -* [Monitor Docker](https://github.com/ualex73/monitor_docker) (not currently used) +* [Monitor Docker](https://github.com/ualex73/monitor_docker) * [MercedeME 2020](https://github.com/ReneNulschDE/mbapi2020) * [pfSense integration for Home Assistant](https://github.com/travisghansen/hass-pfsense) (not currently used) * [Pirate Weather](https://github.com/alexander0042/pirate-weather-ha) * [Scheduler Component](https://github.com/nielsfaber/scheduler-component) (not currently used) ### Frontend * [auto-entities](https://github.com/thomasloven/lovelace-auto-entities) -* [badge-Card](https://github.com/thomasloven/lovelace-auto-entities) (not currently used) +* [badge-Card](https://github.com/thomasloven/lovelace-auto-entities) * [Bar Card](https://github.com/custom-cards/bar-card) * [Battery State Card](https://github.com/maxwroc/battery-state-card) * [button-card](https://github.com/custom-cards/button-card) @@ -51,7 +51,7 @@ My server is an Intel NUC (NUC10i5FNH) with [Proxmox Virtual Environment](https: * [Lovelace Swipe Navigation](https://github.com/maykar/lovelace-swipe-navigation) * [mini-graph-card](https://github.com/kalkih/mini-graph-card) * [Mushroom](https://github.com/piitaya/lovelace-mushroom) -* [Mushroom Themes](https://github.com/piitaya/lovelace-mushroom-themes) +* [Mushroom Themes](https://github.com/piitaya/lovelace-mushroom-themes) (not currently used) * [Paper Buttons Row](https://github.com/jcwillox/lovelace-paper-buttons-row) (not currently used) * [pirate-weather-ha](https://github.com/alexander0042/pirate-weather-ha) * [Plotly Graph Card](https://github.com/dbuezas/lovelace-plotly-graph-card) diff --git a/components/monitor_docker.yaml b/components/monitor_docker.yaml new file mode 100644 index 00000000..ba21a81c --- /dev/null +++ b/components/monitor_docker.yaml @@ -0,0 +1,31 @@ +###################################################################### +# Component: Monitor Docker +###################################################################### + +- name: Docker + scan_interval: 300 + monitored_conditions: + - version + - containers_total + - containers_running + #- containers_paused + #- containers_stopped + #- containers_cpu_percentage + #- containers_1cpu_percentage + #- containers_memory + #- containers_memory_percentage + #- images + #- state + - status + #- health + #- uptime + #- image + #- cpu_percentage + #- 1cpu_percentage + #- memory + #- memory_percentage + #- network_speed_up + #- network_speed_down + #- network_total_up + #- network_total_down + #- allinone diff --git a/configuration.yaml b/configuration.yaml index e5c199e3..6ede35a7 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -222,3 +222,6 @@ proxmoxve: !include components/proxmox.yaml # Telegram telegram_bot: !include components/telegram.yaml + +# Monitor Docker +monitor_docker: !include components/monitor_docker.yaml \ No newline at end of file diff --git a/log/history.yaml b/log/history.yaml index 04c9c0dc..801ff6a3 100644 --- a/log/history.yaml +++ b/log/history.yaml @@ -73,6 +73,8 @@ exclude: # CO2 - sensor.co2_signal_co2_intensity - sensor.co2_signal_grid_fossil_fuel_percentage + entity_globs: + - sensor.docker_* domains: - automation - button diff --git a/log/logbook.yaml b/log/logbook.yaml index 20dc041f..3d5f7d21 100644 --- a/log/logbook.yaml +++ b/log/logbook.yaml @@ -73,6 +73,8 @@ exclude: # CO2 - sensor.co2_signal_co2_intensity - sensor.co2_signal_grid_fossil_fuel_percentage + entity_globs: + - sensor.docker_* domains: - automation - button diff --git a/log/recorder.yaml b/log/recorder.yaml index b0dfabd7..65247d9d 100644 --- a/log/recorder.yaml +++ b/log/recorder.yaml @@ -75,6 +75,8 @@ exclude: # CO2 - sensor.co2_signal_co2_intensity #- sensor.co2_signal_grid_fossil_fuel_percentage + entity_globs: + - sensor.docker_* domains: - automation - button -- 2.47.3