Révision a3ae1af1
docker_: use "exclude" filter for all graphs
| plugins/docker/docker_ | ||
|---|---|---|
| 142 | 142 |
|
| 143 | 143 |
@cached_property |
| 144 | 144 |
@sorted_by_creation_date |
| 145 |
def containers(self): |
|
| 146 |
return self.client.containers.list() |
|
| 147 |
|
|
| 148 |
@cached_property |
|
| 149 |
@sorted_by_creation_date |
|
| 150 | 145 |
def all_containers(self): |
| 151 | 146 |
return [c for c in self.client.containers.list(all=True) |
| 152 | 147 |
if not self.exclude |
| ... | ... | |
| 278 | 273 |
def parallel_container_stats(client): |
| 279 | 274 |
proc_list = [] |
| 280 | 275 |
stats = {}
|
| 281 |
for container in client.containers: |
|
| 276 |
for container in client.all_containers:
|
|
| 282 | 277 |
q = Queue() |
| 283 | 278 |
p = Process(target=get_container_stats, args=(container, q)) |
| 284 | 279 |
proc_list.append({'proc': p, 'queue': q, 'container': container})
|
Formats disponibles : Unified diff