Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Categorize containers in separate widgets #336

Open
shareef945 opened this issue Feb 10, 2025 · 4 comments
Open

Categorize containers in separate widgets #336

shareef945 opened this issue Feb 10, 2025 · 4 comments
Labels
feature request roadmap Will likely be implemented in the future
Milestone

Comments

@shareef945
Copy link

Description

Feature Request: Filter Docker Containers Widget by Labels

Description
I self-host various applications, some for clients and some for internal use. I'd like to be able to create separate dashboard sections that show only relevant containers based on their labels, allowing me to have different views for internal team members versus external clients.

Use Case
I'm using Glance as a dashboard for both internal team members and external clients. Currently, all docker containers appear in a single widget, which means:

  • The dashboard becomes cluttered with irrelevant containers for different user groups
  • Can't create separate, clean views for different audiences

Proposed Solution:

  • Allow user to rename widgets

This would allow:

  • Clean separation of internal and client-facing containers
  • Better organization of the dashboard
  • More control over what different users can see
  • Ability to create purpose-specific sections

Current Workaround
Currently, there is no way to filter containers - all containers appear in a single widget regardless of their labels.

Image

@svilenmarkov
Copy link
Member

Hey, if I understand correctly, you want to be able to categorize containers in separate widgets, something along the lines of this:

glance.yml

- type: docker-containers
  title: Internal containers
  category: internal 

- type: docker-containers
  title: External containers
  category: external

docker-compose.yml

services:
  some-internal-service:
    labels:
      glance.category: internal

  some-external-service:
    labels:
      glance.category: external

Where the category can be anything, and if the widget has a category specified it will only show the containers with that category. Is that correct?

@shareef945
Copy link
Author

Yeah precisely.

labels: - 'homepage.group=Internal' - 'homepage.name=n8n' - 'homepage.icon=si-n8n-#EA4B71'

thats how i do it with homepage

@svilenmarkov svilenmarkov added the roadmap Will likely be implemented in the future label Feb 10, 2025
@svilenmarkov
Copy link
Member

I've added it to the roadmap, I'll have it implemented in a future release.

@svilenmarkov svilenmarkov changed the title Custom label for docker-containers widget Categorize containers in separate widgets Feb 10, 2025
@shareef945
Copy link
Author

Legend !

@svilenmarkov svilenmarkov added this to the v0.8.0 milestone Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request roadmap Will likely be implemented in the future
Projects
None yet
Development

No branches or pull requests

2 participants