Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get metric from trivy #14352

Open
robrosillo opened this issue Mar 3, 2021 · 6 comments
Open

How to get metric from trivy #14352

robrosillo opened this issue Mar 3, 2021 · 6 comments
Assignees
Labels
area/metrics kind/requirement New feature or idea on top of harbor

Comments

@robrosillo
Copy link

robrosillo commented Mar 3, 2021

I have configured Harbor v.2.2.0 to use Trivy like scanner, but the exporter does not have metrics available. Could it be possible to have it?.

Describe the solution you'd like
Exporter with trivy metrics

@ninjadq ninjadq self-assigned this Mar 8, 2021
@ninjadq
Copy link
Member

ninjadq commented Mar 8, 2021

hi @robrosillo , we currently not expose Trivy related metrics.
But it can be added in future release. Could you provide more details? like what kind of metrics do you want?

@ninjadq ninjadq added the kind/requirement New feature or idea on top of harbor label Mar 8, 2021
@robrosillo
Copy link
Author

Hi @ninjadq

These could be some metrics:

  • Scanned complated
  • Scanned errors
  • Scanned total
  • Scanned requested
  • Scanend latency

How you see, it is more less the clair metrics

Regards
Roberto

@matgn
Copy link

matgn commented Sep 29, 2021

Some information on vulnerabilities would be great !

Like :

  • harbor_artifacts_vulnerabilities
    Or at least :
  • harbor_project_vulnerabilities_total
    And :
  • harbor_project_vulnerability_severity

@wy65701436 wy65701436 assigned chlins and unassigned ninjadq Jan 10, 2022
@zyyw zyyw removed the target/2.5.0 label Jan 17, 2022
@github-actions
Copy link

github-actions bot commented Jul 5, 2022

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

@github-actions github-actions bot added the Stale label Jul 5, 2022
@stonezdj stonezdj removed the Stale label Jul 7, 2022
@wy65701436 wy65701436 assigned qnetter and unassigned xaleeks Aug 23, 2022
@qnetter
Copy link
Contributor

qnetter commented Aug 30, 2022

This is a great idea, but not likely for the next release, which due to the end-of-year holidays on both sides of the ocean will be a bit shorter cycle than usual.

@irLinja
Copy link

irLinja commented Feb 16, 2024

Sometimes trivy stops scanning for no good reason.
There are 4 instances of trivy running, they are healthy and ready, trivy API is accessible and responding through port forward, but in harbor scanner reports unhealthy.

Would be great to have metrics for trivy health and the last scan time in harbor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics kind/requirement New feature or idea on top of harbor
Projects
None yet
Development

No branches or pull requests