Skip to content

Commit

Permalink
Update APF dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
dry923 committed Sep 14, 2023
1 parent 8c171d8 commit 37f484d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions templates/api-performance-overview.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,13 @@ local pf_request_wait_duration_99th_quartile = grafana.graphPanel.new(
legend_rightSide=true,
legend_sort='max',
legend_sortDesc=true,
legend_max=true,
legend_avg=true,
nullPointMode='null as zero',
legend_hideZero=true,
).addTarget(
prometheus.target(
'histogram_quantile(0.99, sum(rate(apiserver_flowcontrol_request_wait_duration_seconds_bucket{instance=~"$instance",flowSchema=~"$flowSchema",priorityLevel=~"$priorityLevel"}[$interval])) by(flowSchema, priorityLevel, le))',
legendFormat='{{flowSchema}}:{{priorityLevel}}',
'histogram_quantile(0.99, sum(rate(apiserver_flowcontrol_request_wait_duration_seconds_bucket{instance=~"$instance"}[5m])) by(flow_schema, priority_level, le))'
)
);

Expand Down Expand Up @@ -288,12 +289,19 @@ local pf_request_dispatch_rate = grafana.graphPanel.new(
);

local pf_concurrency_limit = grafana.graphPanel.new(
title='p&f - concurrency limit by priority level',
title='p&f - concurrency limit by kube-apiserver',
datasource='$datasource',
description='Shared concurrency limit in the API Priority and Fairness system',
legend_values=true,
legend_alignAsTable=true,
legend_current=true,
legend_rightSide=true,
legend_sort='max',
legend_sortDesc=true,
nullPointMode='null as zero',
).addTarget(
prometheus.target(
'sum(apiserver_flowcontrol_request_concurrency_limit{instance=~"$instance",priorityLevel=~"$priorityLevel"}) by (priorityLevel)',
'sum(apiserver_flowcontrol_request_concurrency_limit{instance=~".*:6443",priorityLevel=~"$priorityLevel"}) by (instance,priorityLevel)'
legendFormat='{{priorityLevel}}'
)
);
Expand Down

0 comments on commit 37f484d

Please sign in to comment.