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 missing label on replicator metrics and unit test #229

Merged

Conversation

kevinye202
Copy link
Contributor

The storage type label is missing from metrics blob replicator, causing the initialization to fail on:
panic: 1 unknown label(s) found during currying

goroutine 1 [running]:
github.com/prometheus/client_golang/prometheus.(*HistogramVec).MustCurryWith(...)
external/gazelle~~go_deps~com_github_prometheus_client_golang/prometheus/histogram.go:1278

Also, add a unit test to catch this case.

@EdSchouten EdSchouten merged commit eeaff4c into buildbarn:master Dec 9, 2024
1 check passed
@EdSchouten
Copy link
Member

Thanks a lot, @kevinye202!

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

Successfully merging this pull request may close these issues.

2 participants