Skip to content
代码片段 群组 项目
未验证 提交 627e2924 编辑于 作者: Hayley Swimelar's avatar Hayley Swimelar 提交者: GitLab
浏览文件

Container Registry: clarify post-import monitoring

上级 d65acd31
No related branches found
No related tags found
无相关合并请求
......@@ -1669,6 +1669,26 @@ curl "localhost:5001/debug/health"
curl "localhost:5001/debug/vars"
```
#### Enable Registry Prometheus Metrics
If the debug server is enabled, you can also enable Prometheus metrics. This endpoint exposes highly detailed telemetry
related to almost all registry operations.
```ruby
registry['debug'] = {
'prometheus' => {
'enabled' => true,
'path' => '/metrics'
}
}
```
Use curl to request debug output from Prometheus:
```shell
curl "localhost:5001/debug/metrics"
```
### Tags with an empty name
If using [AWS DataSync](https://aws.amazon.com/datasync/)
......
......@@ -355,6 +355,14 @@ sudo gitlab-ctl registry-database import --step-three
After that command exists successfully, the registry is now fully migrated to the database!
#### Post Migration
It may take approximately 48 hours post migration to see your registry storage
decrease. This is a normal and expected part of online garbage collection, as this
delay ensures that online garbage collection does not interfere with image pushes.
Check out the [monitor online garbage collection](#online-garbage-collection-monitoring) section
to see how to monitor the progress and health of the online garbage collector.
## Manage schema migrations
Use the following commands to run the schema migrations for the Container registry metadata database.
......@@ -409,6 +417,8 @@ pay special attention to logs filtered by `component=registry.gc.*`.
Use monitoring tools like Prometheus and Grafana to visualize and track garbage collection metrics,
focusing on metrics with a prefix of `registry_gc_*`. These include the number of objects
marked for deletion, objects successfully deleted, run intervals, and durations.
See [enable the registry debug server](container_registry.md#enable-the-registry-debug-server)
for how to enable Prometheus.
### Queue monitoring
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册