diff --git a/dashboards/controller-manager.libsonnet b/dashboards/controller-manager.libsonnet index 0f8a33b9b..f8b1596ed 100644 --- a/dashboards/controller-manager.libsonnet +++ b/dashboards/controller-manager.libsonnet @@ -151,9 +151,9 @@ local var = g.dashboard.variable; + tsPanel.queryOptions.withTargets([ prometheus.new( '${datasource}', - 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance", verb="POST"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config + 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance", verb="POST"}[%(grafanaIntervalVar)s])) by (verb, le))' % $._config ) - + prometheus.withLegendFormat('{{verb}} {{url}}'), + + prometheus.withLegendFormat('{{verb}}'), ]), tsPanel.new('Get Request Latency 99th Quantile') @@ -161,9 +161,9 @@ local var = g.dashboard.variable; + tsPanel.queryOptions.withTargets([ prometheus.new( '${datasource}', - 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config + 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, le))' % $._config ) - + prometheus.withLegendFormat('{{verb}} {{url}}'), + + prometheus.withLegendFormat('{{verb}}'), ]), tsPanel.new('Memory') diff --git a/dashboards/kubelet.libsonnet b/dashboards/kubelet.libsonnet index 2d067e936..bd6cb32f1 100644 --- a/dashboards/kubelet.libsonnet +++ b/dashboards/kubelet.libsonnet @@ -206,8 +206,8 @@ local var = g.dashboard.variable; tsPanel.new('Request duration 99th quantile') + tsPanel.standardOptions.withUnit('s') + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{instance}} {{verb}} {{url}}'), + prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, verb, le))' % $._config) + + prometheus.withLegendFormat('{{instance}} {{verb}}'), ]), tsMemory: tsPanel.new('Memory') diff --git a/dashboards/proxy.libsonnet b/dashboards/proxy.libsonnet index df074e8e2..90c132cb4 100644 --- a/dashboards/proxy.libsonnet +++ b/dashboards/proxy.libsonnet @@ -132,16 +132,16 @@ local var = g.dashboard.variable; + tsPanel.gridPos.withW(16) + tsPanel.standardOptions.withUnit('ops') + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s,instance=~"$instance",verb="POST"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), + prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s,instance=~"$instance",verb="POST"}[%(grafanaIntervalVar)s])) by (verb, le))' % $._config) + + prometheus.withLegendFormat('{{verb}}'), ]), tsPanel.new('Get Request Latency 99th Quantile') + tsPanel.gridPos.withW(24) + tsPanel.standardOptions.withUnit('s') + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), + prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, le))' % $._config) + + prometheus.withLegendFormat('{{verb}}'), ]), diff --git a/dashboards/scheduler.libsonnet b/dashboards/scheduler.libsonnet index da351f318..4a7d236a4 100644 --- a/dashboards/scheduler.libsonnet +++ b/dashboards/scheduler.libsonnet @@ -137,16 +137,16 @@ local var = g.dashboard.variable; + tsPanel.gridPos.withW(16) + tsPanel.standardOptions.withUnit('ops') + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance", verb="POST"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), + prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance", verb="POST"}[%(grafanaIntervalVar)s])) by (verb, le))' % $._config) + + prometheus.withLegendFormat('{{verb}}'), ]), tsPanel.new('Get Request Latency 99th Quantile') + tsPanel.gridPos.withW(24) + tsPanel.standardOptions.withUnit('s') + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), + prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, le))' % $._config) + + prometheus.withLegendFormat('{{verb}}'), ]),