Commit graph

14 commits

Author SHA1 Message Date
Michael
59349d2859
Store runtime data inside the config entry in System Monitor (#116816)
* replace optional timeout by sane default

* SystemMonitorConfigEntry noz needed in repairs.py
2024-05-05 02:03:57 +02:00
J. Nick Koston
1ffc459aa7
Only read cpu once during systemmonitor setup (#112863)
* Only read cpu once during systemmonitor setup

* type
2024-03-09 23:00:53 -05:00
Joost Lekkerkerker
c8f39911cc
Enable some PERF rules (#112498)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-06 17:50:41 +01:00
J. Nick Koston
01a6b85a35
Avoid creating system monitor disk sensors for non-dirs (#111695)
Avoid creating system monitor sensors for non-dirs

Currently we create sensors for /etc/hosts, /etc/asound.conf, since
they are bind mounts in the container. These all have to have
their own coordinator
2024-02-28 09:31:02 +01:00
G Johansson
9e46c2e2b3
Isolate systemmonitor from psutil shared state (#111110)
* Isolate systemmonitor from psutil shared state

* Mods

* typing

* Fix tests

* Fix read temp issue

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-23 20:53:48 +01:00
G Johansson
7572a73c16
Add debug logger for cpu temp in System Monitor (#109627) 2024-02-04 20:11:28 +01:00
G Johansson
d4f9ad9dd3
Create update coordinator for Systemmonitor (#106693) 2024-01-16 15:07:55 -10:00
G Johansson
5d3e069655
Don't load entities for docker virtual ethernet interfaces in System Monitor (#107966) 2024-01-13 20:39:34 +01:00
G Johansson
1d2c23d81c
Skip disk types in System Monitor (#107943)
* Skip disk types in System Monitor

* change back
2024-01-13 14:34:24 +01:00
G Johansson
840089b8ac
Handle OSError during setup for System Monitor (#107396)
* Handle OSError during setup for System Monitor

* Clean string copy

* debug

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-07 13:15:34 +01:00
G Johansson
853e4d87fa
Handle no permission for disks in Systemmonitor (#106653) 2023-12-29 13:21:36 +01:00
G Johansson
4cd1965786
Use set instead of list in Systemmonitor (#106650) 2023-12-29 13:21:08 +01:00
G Johansson
353f33f4ac
Add missing disks to Systemmonitor (#106541) 2023-12-28 17:45:21 +01:00
G Johansson
4f0ee20ec5
Add config flow to System Monitor (#104906)
* Initial commit for config flow to System Monitor

* sensors

* Fixes

* Works

* Add import

* entity_registry_enabled_default = False

* entity_category = diagnostic

* Create issue

* issue in config flow

* Tests

* test requirement

* codeowner

* Fix names

* processes

* Fix type

* reviews

* get info during startup once

* Select process

* Legacy import of resources

* requirements

* Allow custom

* Fix tests

* strings

* strings

* Always enable process sensors

* Fix docstrings

* skip remove sensors if no sensors

* Modify sensors

* Fix tests
2023-12-26 18:29:32 +01:00