Skip to content

Commit 2a89d2c

Browse files
committed
Avoid comma t the end of hash
1 parent 436e907 commit 2a89d2c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/gitlab/prometheus/queries/deployment_query.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def query(deployment_id)
1919

2020
cpu_values: client_query_range(cpu_query, start: timeframe_start, stop: timeframe_end),
2121
cpu_before: client_query(cpu_avg_query, time: deployment.created_at.to_f),
22-
cpu_after: client_query(cpu_avg_query, time: timeframe_end),
22+
cpu_after: client_query(cpu_avg_query, time: timeframe_end)
2323
}
2424
end
2525
end

lib/gitlab/prometheus/queries/environment_query.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def query(environment_id)
1313
memory_values: client_query_range(memory_query, start: timeframe_start, stop: timeframe_end),
1414
memory_current: client_query(memory_query, time: timeframe_end),
1515
cpu_values: client_query_range(cpu_query, start: timeframe_start, stop: timeframe_end),
16-
cpu_current: client_query(cpu_query, time: timeframe_end),
16+
cpu_current: client_query(cpu_query, time: timeframe_end)
1717
}
1818
end
1919
end

spec/support/prometheus_helpers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def prometheus_data(last_update: Time.now.utc)
8989
memory_values: prometheus_values_body('matrix').dig(:data, :result),
9090
memory_current: prometheus_value_body('vector').dig(:data, :result),
9191
cpu_values: prometheus_values_body('matrix').dig(:data, :result),
92-
cpu_current: prometheus_value_body('vector').dig(:data, :result),
92+
cpu_current: prometheus_value_body('vector').dig(:data, :result)
9393
},
9494
last_update: last_update
9595
}

0 commit comments

Comments
 (0)