Add glances for monitoring system status
This commit is contained in:
parent
11128e4132
commit
b1b83a8a29
@ -106,3 +106,17 @@ services:
|
|||||||
HA_URL: homeassistant:8123
|
HA_URL: homeassistant:8123
|
||||||
DASH_URL: appdaemon:5050
|
DASH_URL: appdaemon:5050
|
||||||
TOKEN: secret_token
|
TOKEN: secret_token
|
||||||
|
|
||||||
|
glances:
|
||||||
|
container_name: glances
|
||||||
|
image: nicolargo/glances
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
environment:
|
||||||
|
TZ: Europe/Stockholm
|
||||||
|
GLANCES_OPT: -w
|
||||||
|
pid: host
|
||||||
|
ports:
|
||||||
|
- 61208:61208
|
||||||
|
- 61209:61209
|
||||||
|
@ -81,3 +81,11 @@ cards:
|
|||||||
- domain: automation
|
- domain: automation
|
||||||
options:
|
options:
|
||||||
secondary_info: entity-id
|
secondary_info: entity-id
|
||||||
|
|
||||||
|
- type: custom:auto-entities
|
||||||
|
card:
|
||||||
|
type: entities
|
||||||
|
title: Swarm
|
||||||
|
filter:
|
||||||
|
include:
|
||||||
|
- entity_id: sensor.swarm_*
|
||||||
|
@ -14,6 +14,23 @@ binary_sensor:
|
|||||||
state_topic: "computer/arrakis/on"
|
state_topic: "computer/arrakis/on"
|
||||||
name: Arrakis
|
name: Arrakis
|
||||||
|
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: glances
|
||||||
|
host: glances
|
||||||
|
version: 3
|
||||||
|
name: swarm
|
||||||
|
resources:
|
||||||
|
- disk_use_percent
|
||||||
|
- memory_use_percent
|
||||||
|
- processor_load
|
||||||
|
- cpu_use_percent
|
||||||
|
- cpu_temp
|
||||||
|
- docker_active
|
||||||
|
- docker_cpu_use
|
||||||
|
- docker_memory_use
|
||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: Desk lamp follows computer
|
- alias: Desk lamp follows computer
|
||||||
initial_state: True
|
initial_state: True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user