Skip to content

Commit

Permalink
removed deprecated label url of rest_client_request_duration_seconds_…
Browse files Browse the repository at this point in the history
…bucket

Signed-off-by: Sniper91 <[email protected]>
  • Loading branch information
Sniper91 committed Dec 30, 2024
1 parent 1087458 commit fa2c8bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions dashboards/controller-manager.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ 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')
+ 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", %(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')
Expand Down
4 changes: 2 additions & 2 deletions dashboards/kubelet.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
8 changes: 4 additions & 4 deletions dashboards/proxy.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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}}'),
]),


Expand Down
8 changes: 4 additions & 4 deletions dashboards/scheduler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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}}'),
]),


Expand Down

0 comments on commit fa2c8bf

Please sign in to comment.