On a fresh install of 18.10 I attempted to install CPU usage widget
https://extensions.gnome.org/extension/120/system-monitor/
on that link it errors showing :
Although GNOME Shell integration extension is running, native host connector is not detected
On Ubuntu 22.04 clone the repo https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet and do the manual install as per
If above fails on Ubuntu 22.04 then just use https://extensions.gnome.org/extension/3010/system-monitor-next/
Below is for 20.04 or earlier ...
First install this (its what appears in your error popup):
However, on a new OS install you will still get errors until you also install these:
Or:
Then bounce your GNOME Shell by typing:
or bounce from a terminal by running
Now go back to
and turn on the monitor extension. The resource monitor widget will now appear on desktop top status bar.
UPDATE On Ubuntu 20.04, after doing the above, if it errors out, run the following in a terminal:
Then bounce your GNOME Shell using:
I have run fresh installs of Ubuntu 20.04 on a handful of laptops and some work others fail to run this so the mystery continues...
UPDATE2 Apparently if you are running Chromium as a Snap in Ubuntu 20.04, this is a known bug. Using Firefox one can circumnavigate this issue and it should work.
PS and yes this also works for Ubuntu 21.10 ( as of May 21 2021 )