Commit a2dd4592 authored by Ash McKenzie's avatar Ash McKenzie Committed by Dylan Griffith

Update prometheus expected query

parent 89ff97b1
...@@ -23,9 +23,14 @@ RSpec.describe ChangeVariableInterpolationFormatInCommonMetrics, :migration do ...@@ -23,9 +23,14 @@ RSpec.describe ChangeVariableInterpolationFormatInCommonMetrics, :migration do
end end
it 'updates query to use {{}}' do it 'updates query to use {{}}' do
expected_query = 'avg(sum(container_memory_usage_bytes{container_name!="POD",' \ expected_query = <<~EOS.chomp
'pod_name=~"^{{ci_environment_slug}}-(.*)",namespace="{{kube_namespace}}"})' \ avg(sum(container_memory_usage_bytes{container!="POD",\
' by (job)) without (job) /1024/1024/1024' pod=~"^{{ci_environment_slug}}-(.*)",namespace="{{kube_namespace}}"}) \
by (job)) without (job) /1024/1024/1024 OR \
avg(sum(container_memory_usage_bytes{container_name!="POD",\
pod_name=~"^{{ci_environment_slug}}-(.*)",namespace="{{kube_namespace}}"}) \
by (job)) without (job) /1024/1024/1024
EOS
migrate! migrate!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment