Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestBodySizes = metrics.NewHistogramVec( &metrics.HistogramOpts{ Subsystem: "apiserver", Name: "request_body_size_bytes", Help: "Apiserver request body size in bytes broken out by resource and verb.", Buckets: metrics.LinearBuckets(50000, 100000, 31), StabilityLevel: metrics.ALPHA, }, []string{"resource", "verb"}, ) )
Functions ¶
func RecordRequestBodySize ¶
func RecordRequestBodySize(ctx context.Context, resource string, verb RequestBodyVerb, size int)
Types ¶
type RequestBodyVerb ¶
type RequestBodyVerb string
const ( Patch RequestBodyVerb = "patch" Delete RequestBodyVerb = "delete" Update RequestBodyVerb = "update" Create RequestBodyVerb = "create" DeleteCollection RequestBodyVerb = "delete_collection" )
Click to show internal directories.
Click to hide internal directories.