-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Harbor should expose metrics. #4557
Comments
I'm pretty sure Prometheus-compatible metrics exposure is almost a requirement in 2018 for project adoption. 🤔 |
+1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
+1 |
any update for this in roadmap activities..? |
Definitely on our roadmap and we hope to get to it as soon as possible. If anyone is interested in contributing please let me know. 😄 |
@clouderati @reasonerjt I would love to help with this issue.😁 |
Hi, is there any update on this issue? I think we can introduce the prometheus format metrics to harbor as the first step (we will get the golang runtime metrics and process metrics by default), and add necessary metrics later on. |
A good start would be amount of pulls / push with error codes to get more insight about unauthorized pulls. |
You can effectively get this for "free" these days, as Docker Distribution provides Prometheus metrics since v2.7.1 (See distribution/distribution@e3c37a4 and for docs: https://github.com/docker/distribution/blob/master/docs/configuration.md) To adopt, this would imply: a) updating the version of docker distribution (currently 2.6.4) to 2.7.1 or later. |
does anyone know how can I query harbor(api) for pull and push operations? |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I'm pretty sure the |
Seems that since #8003 the |
If anyone wants to work on this issue please reach out. |
I would like to work on this issue. Thanks! |
+1 |
I subscribed to this issue to stay informed on the developments of this feature, not to be emailed every day with another useless "+1" response kthx. |
+1 |
I'm building a |
I faced the below mentioned issue while using https://github.com/c4po/harbor_exporter. Issue: |
@pruthvi08 then open an issue there 🤷🏼♂️ |
@xaleeks I am concerned that this issue is still in the backlog. Does that mean that this issue cannot be resolved until version 2.2? |
@Hokwang We are still in planning stage and it didn't make it into the 2.1 release hopper unfortunately. To have a better chance of delivering this in 2.2, we need be finalizing some high level design pretty soon. Do you have some bandwidth to contribute to this as well? |
+1 |
+1 |
I just saw a related article. |
+1 |
I prefer the official to provide metrics directly, rather than through exporter |
Everyone please feel free to chime in with your requirements, we're working on a functional spec right now. Will share more on the next community meeting, or perhaps the one after that |
@xaleeks Some great metrics would be the results of the scans. So we could have alerts when vulnerabilties are found. |
updated proposal is here |
metrics that will be captured in next v2.2 release are here https://docs.google.com/document/d/1J_jiJVdV4AOB9lf9PtN5T1LoqHlHF8SjLjI2KL17b0o/edit |
+1 |
1 similar comment
+1 |
this document shows that the following metrics will be implemented: Maybe I can't find them or they are still in development? |
@amaters-easy The vulnerabilities are based on artifacts. So it can become a huge number. So it isn't a good practice to expose them. It will be added in a future release if we find a proper way. |
@ninjadq what about replication policy status metrics? They're also in the document but i can't see them in Prometheus. Is that something that's planned to be relased in further releases? Thanks! |
@cparadal replication jobs are run by Job service also. you can find replication related job status with job services' metrics |
Thanks for your reply! These are the I guess I could alert if the below count doesn't increase:
... even though it applies to all scheduled replications, can't see a way to get metrics for specific ones. |
@xaleeks Shall we close this one and open new issues, I believe adding/adjusting the metrics for Harbor will be a continuous effort. |
any update? |
As per #4557 (comment) I'm closing this one. Please open new issues when you want new metrics to be collected or make adjustment to the existing ones. |
This helpful for user who host Harbor as a service.
The text was updated successfully, but these errors were encountered: