server: add prometheus metrics for CRI operations
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
5488bfeb9e
commit
12cb424833
28 changed files with 313 additions and 53 deletions
|
@ -432,6 +432,11 @@ func addSecretsBindMounts(mountLabel, ctrRunDir string, defaultMounts []string,
|
|||
|
||||
// CreateContainer creates a new container in specified PodSandbox
|
||||
func (s *Server) CreateContainer(ctx context.Context, req *pb.CreateContainerRequest) (res *pb.CreateContainerResponse, err error) {
|
||||
const operation = "create_container"
|
||||
defer func() {
|
||||
recordOperation(operation, time.Now())
|
||||
recordError(operation, err)
|
||||
}()
|
||||
logrus.Debugf("CreateContainerRequest %+v", req)
|
||||
|
||||
s.updateLock.RLock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue