goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
23.81k stars 4.74k forks source link

Metrics for network activity per project #20988

Open jeicoo opened 1 day ago

jeicoo commented 1 day ago

Please create a metrics that will give insight on network activity(bytes sent, received) with project name as label.

We would like to monitor harbor network traffic base on project and I think it would help administrators track which projects are using most of the bandwidth,

Vad1mo commented 1 day ago

This is difficult to do right and for many use cases depending on how Harbor is configured, artifacts pulls or pushes might no come from harbor but from object store directly, resulting in zero metric.

If you are using and monitoring e.g. nginx ingress or any other powerful ingress, together with artifact file storage, you can gather those metrics already.