gitlab-org--gitlab-foss/app/controllers/projects/environments/prometheus_api_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
436 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Projects::Environments::PrometheusApiController < Projects::ApplicationController
include Metrics::Dashboard::PrometheusApiProxy
before_action :proxyable
feature_category :metrics
urgency :low
private
def proxyable
@proxyable ||= project.environments.find(params[:id])
end
def proxy_variable_substitution_service
::Prometheus::ProxyVariableSubstitutionService
end
end