diff options
author | rpereira2 <rpereira@gitlab.com> | 2019-04-02 11:56:09 +0530 |
---|---|---|
committer | rpereira2 <rpereira@gitlab.com> | 2019-04-05 02:12:33 +0530 |
commit | e1a167ee234fbb8886ac1a882002b76adeb67edf (patch) | |
tree | d7bd9ce87625fe792ea912641fe844b667459568 /app/policies | |
parent | 5dd6e752c0c3d572c645ac56a79c6c5a3fbd5157 (diff) | |
download | gitlab-ce-e1a167ee234fbb8886ac1a882002b76adeb67edf.tar.gz |
Add a Prometheus API per environment
The api will proxy requests to the environment's prometheus server.
The Prometheus::ProxyService class can be reused when we add support for
group prometheus servers.
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 75825c8fac0..26d7d6e84c4 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -204,6 +204,7 @@ class ProjectPolicy < BasePolicy enable :read_merge_request enable :read_sentry_issue enable :read_release + enable :read_prometheus end # We define `:public_user_access` separately because there are cases in gitlab-ee |