@@ -331,15 +331,22 @@ PriorityLevelConfigurations.
331
331
332
332
### Metrics
333
333
334
+ {{< note >}}
335
+ In versions of Kubernetes before v1.20, the labels ` flow_schema ` and
336
+ ` priority_level ` were inconsistently named ` flowSchema ` and ` priorityLevel ` ,
337
+ respectively. If you're running Kubernetes versions v1.19 and earlier, you
338
+ should refer to the documentation for your version.
339
+ {{< /note >}}
340
+
334
341
When you enable the API Priority and Fairness feature, the kube-apiserver
335
342
exports additional metrics. Monitoring these can help you determine whether your
336
343
configuration is inappropriately throttling important traffic, or find
337
344
poorly-behaved workloads that may be harming system health.
338
345
339
346
* ` apiserver_flowcontrol_rejected_requests_total ` is a counter vector
340
347
(cumulative since server start) of requests that were rejected,
341
- broken down by the labels ` flowSchema ` (indicating the one that
342
- matched the request), ` priorityLevel ` (indicating the one to which
348
+ broken down by the labels ` flow_schema ` (indicating the one that
349
+ matched the request), ` priority_level ` (indicating the one to which
343
350
the request was assigned), and ` reason ` . The ` reason ` label will be
344
351
have one of the following values:
345
352
* ` queue-full ` , indicating that too many requests were already
@@ -352,8 +359,8 @@ poorly-behaved workloads that may be harming system health.
352
359
353
360
* ` apiserver_flowcontrol_dispatched_requests_total ` is a counter
354
361
vector (cumulative since server start) of requests that began
355
- executing, broken down by the labels ` flowSchema ` (indicating the
356
- one that matched the request) and ` priorityLevel ` (indicating the
362
+ executing, broken down by the labels ` flow_schema ` (indicating the
363
+ one that matched the request) and ` priority_level ` (indicating the
357
364
one to which the request was assigned).
358
365
359
366
* ` apiserver_current_inqueue_requests ` is a gauge vector of recent
@@ -384,25 +391,25 @@ poorly-behaved workloads that may be harming system health.
384
391
385
392
* ` apiserver_flowcontrol_current_inqueue_requests ` is a gauge vector
386
393
holding the instantaneous number of queued (not executing) requests,
387
- broken down by the labels ` priorityLevel ` and ` flowSchema ` .
394
+ broken down by the labels ` priority_level ` and ` flow_schema ` .
388
395
389
396
* ` apiserver_flowcontrol_current_executing_requests ` is a gauge vector
390
397
holding the instantaneous number of executing (not waiting in a
391
- queue) requests, broken down by the labels ` priorityLevel ` and
392
- ` flowSchema ` .
398
+ queue) requests, broken down by the labels ` priority_level ` and
399
+ ` flow_schema ` .
393
400
394
401
* ` apiserver_flowcontrol_priority_level_request_count_samples ` is a
395
402
histogram vector of observations of the then-current number of
396
403
requests broken down by the labels ` phase ` (which takes on the
397
- values ` waiting ` and ` executing ` ) and ` priorityLevel ` . Each
404
+ values ` waiting ` and ` executing ` ) and ` priority_level ` . Each
398
405
histogram gets observations taken periodically, up through the last
399
406
activity of the relevant sort. The observations are made at a high
400
407
rate.
401
408
402
409
* ` apiserver_flowcontrol_priority_level_request_count_watermarks ` is a
403
410
histogram vector of high or low water marks of the number of
404
411
requests broken down by the labels ` phase ` (which takes on the
405
- values ` waiting ` and ` executing ` ) and ` priorityLevel ` ; the label
412
+ values ` waiting ` and ` executing ` ) and ` priority_level ` ; the label
406
413
` mark ` takes on values ` high ` and ` low ` . The water marks are
407
414
accumulated over windows bounded by the times when an observation
408
415
was added to
@@ -411,7 +418,7 @@ poorly-behaved workloads that may be harming system health.
411
418
412
419
* ` apiserver_flowcontrol_request_queue_length_after_enqueue ` is a
413
420
histogram vector of queue lengths for the queues, broken down by
414
- the labels ` priorityLevel ` and ` flowSchema ` , as sampled by the
421
+ the labels ` priority_level ` and ` flow_schema ` , as sampled by the
415
422
enqueued requests. Each request that gets queued contributes one
416
423
sample to its histogram, reporting the length of the queue just
417
424
after the request was added. Note that this produces different
@@ -428,12 +435,12 @@ poorly-behaved workloads that may be harming system health.
428
435
* ` apiserver_flowcontrol_request_concurrency_limit ` is a gauge vector
429
436
hoding the computed concurrency limit (based on the API server's
430
437
total concurrency limit and PriorityLevelConfigurations' concurrency
431
- shares), broken down by the label ` priorityLevel ` .
438
+ shares), broken down by the label ` priority_level ` .
432
439
433
440
* ` apiserver_flowcontrol_request_wait_duration_seconds ` is a histogram
434
441
vector of how long requests spent queued, broken down by the labels
435
- ` flowSchema ` (indicating which one matched the request),
436
- ` priorityLevel ` (indicating the one to which the request was
442
+ ` flow_schema ` (indicating which one matched the request),
443
+ ` priority_level ` (indicating the one to which the request was
437
444
assigned), and ` execute ` (indicating whether the request started
438
445
executing).
439
446
{{< note >}}
@@ -445,8 +452,8 @@ poorly-behaved workloads that may be harming system health.
445
452
446
453
* ` apiserver_flowcontrol_request_execution_seconds ` is a histogram
447
454
vector of how long requests took to actually execute, broken down by
448
- the labels ` flowSchema ` (indicating which one matched the request)
449
- and ` priorityLevel ` (indicating the one to which the request was
455
+ the labels ` flow_schema ` (indicating which one matched the request)
456
+ and ` priority_level ` (indicating the one to which the request was
450
457
assigned).
451
458
452
459
### Debug endpoints
0 commit comments