Skip to content

Commit

Permalink
Merge pull request #962 from sveno1990/patch-1
Browse files Browse the repository at this point in the history
fix workload-namespace.libsonnet
  • Loading branch information
povilasv authored Sep 23, 2024
2 parents 50150c5 + 309a73d commit e2239f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dashboards/resources/workload-namespace.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ local var = g.dashboard.variable;
local memRequestsQuery = std.strReplace(cpuRequestsQuery, 'cpu', 'memory');
local memLimitsQuery = std.strReplace(cpuLimitsQuery, 'cpu', 'memory');

local cpuQuotaRequestsQuery = 'scalar(kube_resourcequota{%(clusterLabel)s="$cluster", namespace="$namespace", type="hard",resource="requests.cpu"})' % $._config;
local cpuQuotaLimitsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu', 'limits.cpu');
local memoryQuotaRequestsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu', 'requests.memory');
local memoryQuotaLimitsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu', 'limits.memory');
local cpuQuotaRequestsQuery = 'scalar(kube_resourcequota{%(clusterLabel)s="$cluster", namespace="$namespace", type="hard",resource=~"requests.cpu|cpu"})' % $._config;
local cpuQuotaLimitsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu|cpu', 'limits.cpu');
local memoryQuotaRequestsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu|cpu', 'requests.memory|memory');
local memoryQuotaLimitsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu|cpu', 'limits.memory');

local networkColumns = [
|||
Expand Down

0 comments on commit e2239f0

Please sign in to comment.