satellite/metainfo: add missing metrics for metainfo requests
Change-Id: Icba9aa1ee552c7c180aa781de5ef9b87c4ec2f2d
This commit is contained in:
parent
ee720040c9
commit
e0577eedf5
@ -301,6 +301,8 @@ func (endpoint *Endpoint) CommitObject(ctx context.Context, req *pb.ObjectCommit
|
||||
return nil, endpoint.convertMetabaseErr(err)
|
||||
}
|
||||
|
||||
mon.Meter("req_commit_object").Mark(1)
|
||||
|
||||
return &pb.ObjectCommitResponse{}, nil
|
||||
}
|
||||
|
||||
@ -1152,6 +1154,8 @@ func (endpoint *Endpoint) GetObjectIPs(ctx context.Context, req *pb.ObjectGetIPs
|
||||
reliablePieceCount += count
|
||||
}
|
||||
|
||||
mon.Meter("req_get_object_ips").Mark(1)
|
||||
|
||||
return &pb.ObjectGetIPsResponse{
|
||||
Ips: nodeIPs,
|
||||
SegmentCount: int64(object.SegmentCount),
|
||||
@ -1214,6 +1218,8 @@ func (endpoint *Endpoint) UpdateObjectMetadata(ctx context.Context, req *pb.Obje
|
||||
return nil, endpoint.convertMetabaseErr(err)
|
||||
}
|
||||
|
||||
mon.Meter("req_update_object_metadata").Mark(1)
|
||||
|
||||
return &pb.ObjectUpdateMetadataResponse{}, nil
|
||||
}
|
||||
|
||||
|
@ -409,6 +409,8 @@ func (endpoint *Endpoint) CommitSegment(ctx context.Context, req *pb.SegmentComm
|
||||
// they would always be MaxSegmentSize (64MiB)
|
||||
endpoint.versionCollector.collectTransferStats(req.Header.UserAgent, upload, int(req.PlainSize))
|
||||
|
||||
mon.Meter("req_commit_segment").Mark(1)
|
||||
|
||||
return &pb.SegmentCommitResponse{
|
||||
SuccessfulPieces: int32(len(pieces)),
|
||||
}, nil
|
||||
@ -554,6 +556,9 @@ func (endpoint *Endpoint) ListSegments(ctx context.Context, req *pb.SegmentListR
|
||||
return nil, rpcstatus.Error(rpcstatus.Internal, err.Error())
|
||||
}
|
||||
response.EncryptionParameters = streamID.EncryptionParameters
|
||||
|
||||
mon.Meter("req_list_segments").Mark(1)
|
||||
|
||||
return response, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user