1
0
Fork 0
mirror of https://github.com/bastienwirtz/homer.git synced 2026-01-23 02:15:09 +00:00

Glances service improvements (#837)

* feat: add a basic glances service widget

* feat: auto update for glances widget

* feat(services/glances): multiple metric support

* Update dependencies

---------

Co-authored-by: Manuel Quarneti <manuelquarneti@protonmail.com>
This commit is contained in:
Bastien Wirtz 2024-11-23 07:00:01 -08:00 committed by GitHub
parent 496f9083b2
commit e58637d935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 433 additions and 310 deletions

View file

@ -17,6 +17,7 @@ within Homer:
- [Emby / Jellyfin](#emby--jellyfin)
- [FreshRSS](#freshrss)
- [Gitea / Forgejo](#gitea--forgejo)
- [Glances](#glances)
- [Gotify](#gotify)
- [Healthchecks](#healthchecks)
- [Home Assistant](#home-assistant)
@ -128,6 +129,37 @@ This service displays a version string instead of a subtitle. Example configurat
url: http://git.example.com
```
## Glances
This is a basic widget for showing cpu and ram usage using a glances server
You'll need a glances server up and running, this is a sample compose.yml
```yml
---
services:
glances:
image: nicolargo/glances:latest
container_name: glances
environment:
- TZ=Europe/Rome
- GLANCES_OPT=-w
ports:
- 61208:61208
restart: unless-stopped
```
And this is a sample homer configuration
```yml
- name: System
icon: "fa-solid fa-heart-pulse"
url: http://192.168.1.2:61208
type: Glances
stats: [cpu, mem] # Metric to display. Possible values are: load, cpu, mem, swap.
updateInterval: 5000 # (Optional) Interval (in ms) for updating the stats
```
## Gotify
The Gotify service will show the number of currently oustanding messages