Enable Prometheus monitoring of Docker Registry
Enable the Prometheus metrics endpoint on the Docker Registry debug endpoint.
- Enable
/metrics
on debug interface. - Add to Prometheus scrape configs.
Closes: #3942 (closed)
Merge request reports
Activity
1 Warning You’ve made some changes at the locations which contain user facing configuration.
That’s OK as long as you’re refactoring existing code and not adding any new
configuration. If you are adding new user facing configuration, consider adding
to gitlab.rb.template located in files/gitlab-config-template/gitlab.rb.template .
Otherwise, please consider adding the ~backstage label in that case.Generated by
DangerEdited by 🤖 GitLab Bot 🤖added 1 commit
- 22f84a53 - Enable Prometheus monitoring of Docker Registry
added backstage [DEPRECATED] label
@bjk-gitlab Could you also describe how to test this change? I have the necessary stuff in my prometheus and registry config files, but how do I actually test if scraping works?
@balasankarc If you connect to Prometheus (localhost:9090) you should see
up{job="registry"}
return 1. You can also see the metrics returned with{job="registry"}
.added 20 commits
-
22f84a53...0d9f2e3f - 19 commits from branch
master
- 784b2ef6 - Enable Prometheus monitoring of Docker Registry
-
22f84a53...0d9f2e3f - 19 commits from branch
@bjk-gitlab I don't think that our version of the registry supports this. The stable version of the registry that includes https://github.com/docker/distribution/pull/2466 was just released this week 2.7.0
So this is probably blocked by #3964 (closed) for now
@twk3 You're right, it looks like 2.6.0 was branched from master about a month before this feature went in.
I will watch #3964 (closed), if that gets into 11.6, would it be OK to also bring this one in?
@bjk-gitlab I verified that the config files get generated alright. Please assign to me when #3964 (closed) is in so we can actually test it. :)
assigned to @bjk-gitlab
@balasankarc I did some testing on the current (v2.6.0) version. It ignores the
prometheus
config key if you add it. So it would be safe to have this in the config, even with the old version.changed milestone to %11.7
changed milestone to %11.8
mentioned in issue #3653 (closed)
assigned to @twk3
added 353 commits
-
784b2ef6...e82d80c4 - 352 commits from branch
master
- f69d492b - Enable Prometheus monitoring of Docker Registry
-
784b2ef6...e82d80c4 - 352 commits from branch