debian-mirror-gitlab/app/controllers/projects/environments/prometheus_api_controller.rb

20 lines
421 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
# frozen_string_literal: true
class Projects::Environments::PrometheusApiController < Projects::ApplicationController
2020-07-28 23:09:34 +05:30
include Metrics::Dashboard::PrometheusApiProxy
2019-12-21 20:55:43 +05:30
2020-07-28 23:09:34 +05:30
before_action :proxyable
2019-07-07 11:18:12 +05:30
2021-01-03 14:25:43 +05:30
feature_category :metrics
2019-07-07 11:18:12 +05:30
private
2020-07-28 23:09:34 +05:30
def proxyable
@proxyable ||= project.environments.find(params[:id])
2019-07-07 11:18:12 +05:30
end
2019-07-31 22:56:46 +05:30
2020-07-28 23:09:34 +05:30
def proxy_variable_substitution_service
2021-09-30 23:02:18 +05:30
::Prometheus::ProxyVariableSubstitutionService
2019-07-31 22:56:46 +05:30
end
2019-07-07 11:18:12 +05:30
end