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

Need extra labels support for velero backup metrics #8748

Open
nirmal20081028 opened this issue Mar 4, 2025 · 1 comment
Open

Need extra labels support for velero backup metrics #8748

nirmal20081028 opened this issue Mar 4, 2025 · 1 comment
Labels
Metrics Related to prometheus metrics

Comments

@nirmal20081028
Copy link

Hi Team,

Could you please let me know if there is a way to consume extra labels for velero_backup_last_successful_timestamp metric along with schedulename?

If there is no way, is there any possibility of supporting extra labels in the new Velero version?

@blackpiglet blackpiglet added the Metrics Related to prometheus metrics label Mar 4, 2025
@blackpiglet
Copy link
Contributor

backupLastSuccessfulTimestamp: prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Namespace: metricNamespace,
Name: backupLastSuccessfulTimestamp,
Help: "Last time a backup ran successfully, Unix timestamp in seconds",
},
[]string{scheduleLabel},
),

It is defined by the code, and there is no mechanism to customize the labels yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metrics Related to prometheus metrics
Projects
None yet
Development

No branches or pull requests

2 participants