-
Notifications
You must be signed in to change notification settings - Fork 143
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
Delete stale metrics on object delete #1362
Conversation
First of @TarasLykhenko thanks for contributing to the project. I did a quick look through the changes within the PR, and it seems like some of the changes aren't really needed for this PR to do what it needs to do. Is there a specific reason for those changes? I'll see if i can do a more detailed review over the weekend. |
Hi @ilithanos, |
@TarasLykhenko Thanks for updating the code. I'm very sorry for the delay, i ended up in the middle of a job change, and havn't had much time on my hands. Could i get you to resolve the merge conflicts and rebase on master so that we can rerun the tests and ensure this still doesn't break anything else :) |
I resolved the merge conflicts, @ilithanos can you pls check again |
Hi there @ilithanos! Any ETA to merge this PR? This would be really valuable for a monitoring use case of ours 😄 |
@ilithanos Also waiting for this to get merged. We have a bug that this would fix 🙏🏻 |
Is there a scheduled Pre-Release nearby? |
@TarasLykhenko This PR has fixed issue with existing Terraform objects (they were in Using latest tofu-controller Deleting TF resource:
And checking metrics: curl http://tf-controller:8080/metrics
|
Change:
Moved all the metrics recording to be performed at the very end of the reconciliation. Realtime metrics for readiness are no longer recorded to match the Flux metrics recording.
Before this change, the following metrics continued to be exported even after the associated object was deleted:
With this change, they get deleted once the associated object is deleted.