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

Add Prometheus Metric for Harbor Replication Executions #21662

Open
neevnuv opened this issue Feb 23, 2025 · 3 comments
Open

Add Prometheus Metric for Harbor Replication Executions #21662

neevnuv opened this issue Feb 23, 2025 · 3 comments
Labels
candidate/2.14.0 kind/requirement New feature or idea on top of harbor

Comments

@neevnuv
Copy link

neevnuv commented Feb 23, 2025

Is your feature request related to a problem? Please describe.
I use harbor's replication in order to replicate images between two haror sites (base on push events) and need to monitor if a replication failed.

Describe the solution you'd like
We'd like to have a metric that show the replication exectutions. this would allow us to monitor:
increase(harbor_replication_executions{name="my-rep"}[15m])

Describe the main design/architecture of your solution
Add the new metric to the harbor exporter. The new metric will be of type gauge. Each execution will have the values of 1, as long as it exists in the harbor API. The metric will show the following values as labels:

  • replication name
  • execution id
  • execution status
  • trigger type (event based or manual)
@wy65701436 wy65701436 added kind/requirement New feature or idea on top of harbor candidate/2.14.0 labels Feb 24, 2025
@kingbj940429
Copy link

kingbj940429 commented Feb 24, 2025

@wy65701436

can I work this?

@Vad1mo
Copy link
Member

Vad1mo commented Feb 26, 2025

@wy65701436 @stonezdj this could be something for the new auditlogs instead of Prometheus exporter. or it can be both.

@Vad1mo
Copy link
Member

Vad1mo commented Feb 26, 2025

@wy65701436

can I work this?

Sure go ahead...

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

No branches or pull requests

4 participants