-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_logging_metric should be updated instead of recreated when adding new label #14998
Comments
similar to #13759 Change to enhancement |
I tried to reproduce the error. However my log metric is update in-place
I am still investigating... |
Also similar to #9921. Thank you @pengq-google for investigating this issue. Which version of the Google provider are you using, same is OP (4.71.0) or a newer one? |
I also experience this issue, I'm setting the I'm using terraform as the following version:
ps. I noticed that the new version is available (v1.6.2) but haven't test this on the new version yet, going to try updating when I'm at places with good internet. |
I've tested with v1.6.2, the problem still persists |
Thanks all for the datapoints. I'll keep investigating. |
I used v3.46.0 it updated in place.
However when changed to v4.82.0 it is replacing.
I am asking our Terraform team for more details. |
Likely the the behavior changed in 3.67.0, I will double check with our team to see if the behavior is work as intended, if not, will update it in new pr. Thanks for all your patience! |
@pengq-google @roaks3 Is there any movement on this? Not being able to edit and add new labels to existing metrics via terraform is a huge problem for us. We work around it by duplicating it and renaming it + updating all alert/dash references, but it deletes history due to being a new metric. It severely disrupts that continuity and our ability to respond to changes necessary in a live production environment. Everything is done through IaC so having this addressed would be a huge help. |
@ryantansey sorry I just saw this. I can confirm it also happens to me and I'll add this ticket to my next sprint. I'll keep you updated! |
Hi @pengq-google, just wanted to check in on this (not sure how long your sprints are/where you were at in the previous one). Thank you for your time. |
Anyone still around at Google that is working on this? @rileykarson |
Given the amount of time since the last update, my guess is that this was superseded by other priorities. @pengq-google is this in a spot where we should at least re-open the internal bug b/291300763, to make sure it is still being tracked? It had been closed previously due to missing API support. |
This is happening because of some implementation details. We can't fix it without a big refactoring, and it is on our roadmap, but need time to make it happen. I know seeing 'replaced' instead of 'update' can be alarming, but we guarantee no data loss here. |
And yes, we are aware of it, and have ticket tracking it. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
The original resource was modified as shown below:
Expected Behavior
Terraform should have modified the metric without recreating.
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
b/291300763
The text was updated successfully, but these errors were encountered: