Add metrics for non Truenas app containers

Problem/Justification

Many people here are using dockge or portainer to manage their apps. However only the portainer/dockge app is displayed in the App section of truenas. All other containers are not displayed.

Impact

Having all containers displayed in this section, even if not editable/managable, would give a clear view of “what is running” on the server. Maybe just adding some labels on the container to tell Truenas to display it in App section would be great.

Also it would allow users to track down metrics on each container/stack (e.g: network up/down, CPU, RAM usage etc.)

User Story

Just using docker LABEL on stack/container that should be displayed in the TruenasApp would be great!

Similar to this

This is one big reason I gave up on Dockge and just switched to using custom docker-compose.yml files. In fact, I don’t really understand the point of using Dockge at all because it’s possible to do this. My custom apps show metrics perfectly well this way.

In fact, instead of doing this, I would advocate that the UI for the custom apps simply be improved over its current (IMO half-baked) state: instead of a crappy little window to cut-and-paste a .yml file, allow us to place a docker-compose.yml file directly on the filesystem and point to that. In addition, allow us to point to a .env file. And don’t edit the .yml file either: currently, if you cut-and-paste a nicely-formatted docker-compose.yml file, complete with comments, then TrueNAS will reformat it and strip out all the comments, so the saved version will be quite different than what you wrote. There’s no good reason to do this.