Add more Prometheus metrics
Open
@chlins is already working on this.
Since Sep 13, 2022.
area/metrics
area/monitor
kind/requirement
- Dominant language
- Go
- Stars
- 29.4k
- Forks
- 5.3k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 71
Description
Is your feature request related to a problem? Please describe.
We want to monitor our Harbor instances with Prometheus, but there are some metrics missing for some checks.
- Currently, there is no metric with the status of Registries healthy/unhealthy (in our case used for Proxy Cache Projects).
- Storage consumption of Local Disks (like in the
/api/v2.0/systeminfo/volumesAPI endpoint)
Describe the solution you'd like
A new Metric under the /metrics endpoint with the health status of the Registries.
Example of additional required metrics
harbor_registries_healthy{registry="dockerhub"} 1
harbor_registries_healthy{registry="broken-registry"} 0
harbor_disk_bytes_free 186311114752
harbor_disk_bytes_total 1099511627776
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.