mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Publish empty stats on error
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
92bf0a5046
commit
0a30ef4c59
1 changed files with 4 additions and 0 deletions
|
@ -143,6 +143,10 @@ func (s *Collector) Run() {
|
|||
|
||||
default:
|
||||
logrus.Errorf("collecting stats for %s: %v", pair.container.ID, err)
|
||||
pair.publisher.Publish(types.StatsJSON{
|
||||
Name: pair.container.Name,
|
||||
ID: pair.container.ID,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue