Commit 0a5d4f9b authored by rpereira2's avatar rpereira2

Use Prometheus API constants

parent 9953e287
......@@ -33,7 +33,11 @@ module Gitlab
end
def query_type(metric)
metric[:query] ? :query : :query_range
if metric[:query]
::Prometheus::ProxyService::PROMETHEUS_QUERY_API.to_sym
else
::Prometheus::ProxyService::PROMETHEUS_QUERY_RANGE_API.to_sym
end
end
def query_for_metric(metric)
......
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