Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1952fafb
Commit
1952fafb
authored
Jan 05, 2018
by
Pawel Chojnacki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
destroy metrics endpoint
parent
9441ba2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
app/controllers/projects/prometheus/metrics_controller.rb
app/controllers/projects/prometheus/metrics_controller.rb
+8
-1
No files found.
app/controllers/projects/prometheus/metrics_controller.rb
View file @
1952fafb
module
Projects
module
Prometheus
class
MetricsController
<
Projects
::
ApplicationController
before_action
:authorize_
read
_project!
before_action
:authorize_
admin
_project!
before_action
:require_prometheus_metrics!
def
active_common
...
...
@@ -75,6 +75,13 @@ module Projects
@metric
=
project
.
prometheus_metrics
.
find
(
params
[
:id
])
end
def
destroy
@metric
=
project
.
prometheus_metrics
.
find
(
params
[
:id
])
@metric
.
destroy
redirect_to
project_prometheus_metrics
(
@project
),
status:
302
end
private
def
query_validation_params
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment