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

Calculate current metrics on startup #122

Open
Starefossen opened this issue May 23, 2023 · 0 comments
Open

Calculate current metrics on startup #122

Starefossen opened this issue May 23, 2023 · 0 comments
Labels
controller Operator Controller metrics Prometheus Metrics

Comments

@Starefossen
Copy link
Member

When Unleasherator is reset all counters and gauges are 0. external-dns has a RunOnce function for the controller that sets all the metrics to their initial value on startup.

Ref. https://github.com/kubernetes-sigs/external-dns/blob/510eb952b7a7d7af93421092005e771bf015f388/controller/controller.go#L190

and https://github.com/kubernetes-sigs/external-dns/blob/510eb952b7a7d7af93421092005e771bf015f388/main.go#L412

@Starefossen Starefossen added metrics Prometheus Metrics controller Operator Controller labels May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controller Operator Controller metrics Prometheus Metrics
Projects
None yet
Development

No branches or pull requests

1 participant