add metrics for discarding events
Signed-off-by: rongfu.leng <rongfu.leng@daocloud.io>
This commit is contained in:
		| @@ -534,6 +534,7 @@ func (c *criService) generateAndSendContainerEvent(ctx context.Context, containe | ||||
| 	select { | ||||
| 	case c.containerEventsChan <- event: | ||||
| 	default: | ||||
| 		containerEventsDroppedCount.Inc() | ||||
| 		logrus.Debugf("containerEventsChan is full, discarding event %+v", event) | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 rongfu.leng
					rongfu.leng