Skip to content

Commit

Permalink
K8s name rather than the container engine one (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Dec 24, 2020
1 parent 2e55101 commit ccc024a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/ocp-performance.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ local conntrackStats(nodeName) = genericGraphLegendPanel('Conntrack stats: ' + n
local top10ContainerCPU(nodeName) = genericGraphLegendPanel('Top 10 container CPU: ' + nodeName, 'percent').addTarget(
prometheus.target(
'topk(10, sum(irate(container_cpu_usage_seconds_total{container!="POD",name!="",node=~"' + nodeName + '",namespace!="",namespace=~"$namespace"}[5m])) by (namespace,name,service) * 100)',
legendFormat='{{ namespace }} - {{ name }}',
legendFormat='{{ pod }}: {{ container }}',
)
);

local top10ContainerRSS(nodeName) = genericGraphLegendPanel('Top 10 container RSS: ' + nodeName, 'bytes').addTarget(
prometheus.target(
'topk(10, container_memory_rss{container!="POD",name!="",node=~"' + nodeName + '",namespace!="",namespace=~"$namespace"})',
legendFormat='{{ namespace }} - {{ name }}',
legendFormat='{{ pod }}: {{ container }}',
)
);

Expand Down

0 comments on commit ccc024a

Please sign in to comment.