blob: 97810d7d439f99903ff32c4eff5e01e7eb1d6835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
class Projects::Environments::PrometheusApiController < Projects::ApplicationController
include Metrics::Dashboard::PrometheusApiProxy
before_action :proxyable
feature_category :metrics
private
def proxyable
@proxyable ||= project.environments.find(params[:id])
end
def proxy_variable_substitution_service
Prometheus::ProxyVariableSubstitutionService
end
end
|