Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements to API server dashboard #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions dashboards/apiserver.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ local singlestat = grafana.singlestat;
singlestat.new(
'Up',
datasource='$datasource',
span=2,
span=12,
height=2,
valueName='min',
)
.addTarget(prometheus.target('sum(up{%(kubeApiserverSelector)s})' % $._config));
Expand All @@ -22,8 +23,9 @@ local singlestat = grafana.singlestat;
graphPanel.new(
'RPC Rate',
datasource='$datasource',
span=5,
span=6,
format='ops',
min=0
)
.addTarget(prometheus.target('sum(rate(apiserver_request_total{%(kubeApiserverSelector)s, instance=~"$instance",code=~"2.."}[5m]))' % $._config, legendFormat='2xx'))
.addTarget(prometheus.target('sum(rate(apiserver_request_total{%(kubeApiserverSelector)s, instance=~"$instance",code=~"3.."}[5m]))' % $._config, legendFormat='3xx'))
Expand All @@ -34,13 +36,14 @@ local singlestat = grafana.singlestat;
graphPanel.new(
'Request duration 99th quantile',
datasource='$datasource',
span=5,
span=6,
format='s',
legend_show='true',
legend_values='true',
legend_current='true',
legend_alignAsTable='true',
legend_rightSide='true',
min=0
)
.addTarget(prometheus.target('histogram_quantile(0.99, sum(rate(apiserver_request_duration_seconds_bucket{%(kubeApiserverSelector)s, instance=~"$instance"}[5m])) by (verb, le))' % $._config, legendFormat='{{verb}}'));

Expand Down Expand Up @@ -78,6 +81,7 @@ local singlestat = grafana.singlestat;
legend_current='true',
legend_alignAsTable='true',
legend_rightSide='true',
min=0
)
.addTarget(prometheus.target('histogram_quantile(0.99, sum(rate(workqueue_queue_duration_seconds_bucket{%(kubeApiserverSelector)s, instance=~"$instance"}[5m])) by (instance, name, le))' % $._config, legendFormat='{{instance}} {{name}}'));

Expand Down Expand Up @@ -119,6 +123,7 @@ local singlestat = grafana.singlestat;
datasource='$datasource',
span=4,
format='bytes',
min=0
)
.addTarget(prometheus.target('process_resident_memory_bytes{%(kubeApiserverSelector)s,instance=~"$instance"}' % $._config, legendFormat='{{instance}}'));

Expand All @@ -138,6 +143,7 @@ local singlestat = grafana.singlestat;
datasource='$datasource',
span=4,
format='short',
min=0
)
.addTarget(prometheus.target('go_goroutines{%(kubeApiserverSelector)s,instance=~"$instance"}' % $._config, legendFormat='{{instance}}'));

Expand Down