Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Merge requests
!2118
adds prometheus metrics to both mirro and remote mirror features
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
adds prometheus metrics to both mirro and remote mirror features
mirroring-prometheus-metrics
into
master
Overview
19
Commits
1
Pipelines
9
Changes
7
All threads resolved!
Hide all comments
Merged
Tiago Botelho
requested to merge
mirroring-prometheus-metrics
into
master
7 years ago
Overview
19
Commits
1
Pipelines
9
Changes
7
All threads resolved!
Hide all comments
Expand
What does this MR do?
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
Changelog entry
added, if necessary
Documentation created/updated
API support added
Tests
Added for this feature/bug
All builds are passing
Conform by the
merge request performance guides
Conform by the
style guides
Branch has no merge conflicts with
master
(if it does - rebase it please)
Squashed related commits together
What are the relevant issue numbers?
Edited
7 years ago
by
Douwe Maan
0
0
Merge request reports
Viewing commit
a9aa8308
Show latest version
7 files
+
34
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
a9aa8308
Adds prometheus metrics to both mirroring and remote mirroring features
· a9aa8308
Tiago Botelho
authored
7 years ago
app/models/ee/project.rb
+
2
−
0
Options
@@ -73,6 +73,8 @@ def add_import_job
if
import?
&&
!
repository_exists?
super
elsif
mirror?
Gitlab
::
Mirror
.
increment_metric
(:
mirrors_scheduled
,
'Mirrors scheduled count'
)
RepositoryUpdateMirrorWorker
.
perform_async
(
self
.
id
)
end
end
Loading