ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
267 stars 34 forks source link

Option to use wildcards for container name excludes #141

Open RoboMagus opened 5 months ago

RoboMagus commented 5 months ago

I'm often spinning up new Docker containers of which I do want the stats to be included in HomeAssistant. However since I started running some CI/CD jobs on the same machine there are many new containers created and removed every now and then. The names of these containers change and therefore cannot be added to the containers_exclude list. However their names do follow a predefined pattern (e.g. TASK-[number]-[description]), so having the ability to use wildcards to exclude container names would be a great solution.

Potentially relevant to #94.

ualex73 commented 1 month ago

I am looking into this soon, just thinking if labels or exclusion list with wildcards is better/worse.