goharbor / goharbor/harbor

Add more Prometheus metrics

Open
#17,531 0 comments 3 reactions 1 assignee View on GitHub

@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/volumes API 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.