-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
artifact_type in metrics are not relevant #20183
Comments
Which harbor and cosign version/build you are using? |
My Harbor version is 2.10.0. Currently, in database, I have those rows :
The first rows is about image artifact, the second is about the signature artifact. So if you implement a type based either on media_type or manifest_media_type, it will work indeed. |
In fact given to the above info indicates that this signature is signer by legacy cosign version that haven't support oci-spec 1.1 yet, means can not simply collecting either |
Ok thanks. |
Hi,
For reporting needs, I want a metric that reveal the number of images in a project.
The metric I use is "harbor_project_artifact_total". This metric comes with a label named "artifact_type" to differenciate images and charts.
My issue is when we sign an image with cosign, an artifact is created with the label "artifact_type=image". So it is impossible to get the exact number of images in a project when we use cosign.
Is it possible the add a value to the label "artifact_type" to differenciate images artifacts and cosign artifacts ?
The text was updated successfully, but these errors were encountered: