Add glances for monitoring system status

This commit is contained in:
Thomas Lovén 2019-05-23 12:22:51 +02:00
parent 11128e4132
commit b1b83a8a29
3 changed files with 39 additions and 0 deletions

View File

@ -106,3 +106,17 @@ services:
HA_URL: homeassistant:8123
DASH_URL: appdaemon:5050
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

View File

@ -81,3 +81,11 @@ cards:
- domain: automation
options:
secondary_info: entity-id
- type: custom:auto-entities
card:
type: entities
title: Swarm
filter:
include:
- entity_id: sensor.swarm_*

View File

@ -14,6 +14,23 @@ binary_sensor:
state_topic: "computer/arrakis/on"
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:
- alias: Desk lamp follows computer
initial_state: True