Hi @matteoconti92, all you have to do is remove the other elements that you don’t need from the original code I posted. If you have 2 disks, your configuration.yaml would need the below code.
Before you do this, you need to make sure you’re using the correct API endpoint. For me, glances api endpoint is accessible here: http://192.168.1.2:61208/api/3/all. You need to replace it with where your glances is running in the code below. Everything else should be the same.
it’s what I’ve tried but show me the stats for disk “zram0”…I’ve a SSD thought USB named in Glances “sda”…how can I have the stats for that disk I/O?!
really thanks
I’m not a glances expert…but, if you upload the full output of your api end-point (I.E., http://192.168.1.2:61208/api/3/all) to pastebin.com for me to look at, I can try to see what elements are available on your Glances instance. Please make sure you copy/paste the full output (without changing anything) to pastebin.com.
That reminds me, I recently added a Top 5 Processes Task Manager in addition to Network, Disk, and other useful info via configuration.yaml and RESTful integration. It works great and very low on the resources… updating every 6 seconds. I’ll post the code for this soon:
PS: One very useful tip (if using the code above), Use a command-line similar to below for your glances instance to reduce resource consumption significantly. It disables all addons… then, only loads the ones that are actually needed by the RESTful code above.
Glances.exe -w -q -0 --disable-autodiscover --disable-history --disable-plugin all --enable-plugin connections,cpu,diskio,fs,mem,memswap,network,processcount,processlist,uptime
Hi @snipes040 I’m not certain how much different Glances is on Windows verses Linux. I’m guessing not much difference. Can you post the API JSON response you get from your Glances webserver in a text file and share it over here?
Please use the command-line parameters I provided to startup Glances webserver with API. On Linux it shouldn’t be too much different. Make sure you install all the Glances plugins mentioned in the command-line before starting Glances.
Once you share the text file with the full API response, I’ll know if what we need to change in the code (hopefully not much).
To answer your question about the Top 5 processes… everything in the code I posted that mentions processlist will create all the sensors needed for the Top 5 processes. The top 5 processes card you see in the screenshot is actually a Home Assistant Markdown card with the respective code:
Is there a need to submit and enhancement request to enable the updated glances api network stats to appear in the glances integration?
I saw the request to have this added which was merged in May 2023, but the Glances integration still doesn’t produce the new data and there doesn’t appear to be a request anywhere to have it added.
I don’t understand the relationship between the merged request and the glances integration, but it’s clear the the current version of the glances integration doesn’t produce network entities and I don’t see anywhere where it’s an outstanding ER or pending change.