-
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
Label extractor in google_logging_metric does not parse json message #9890
Comments
Hi @dcallao! I'm sorry you're running into this. Would you be able to show me how your |
Hi @megan07! I have posted the full block of code of the |
Hi @dcallao! Sorry for the delay, I was out of office for a bit. I picked this back up today and, although I am not using your exact metrics, I am also seeing the |
I recreated in the console but dont see the message there either. |
Is it possible your |
Hi @megan07! I did try to change it to |
@megan07, any luck with this issue? |
@megan07, checking back with you again. Any luck with this? |
Hi @dcallao, I'm bug on duty this week and just reviewed your comments, from my understanding 1) if you're seeing the It seems to me that the Thanks! |
It looks like this is the expected behavior for the API. From https://cloud.google.com/monitoring/alerts/doc-variables#null-values:
As @megan07 said above - one possible method to debug the resource if Terraform doesn't have the expected result is to create the resource with a different tool and make sure the results are as expected, then map the resource back into Terraform. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
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
Terraform v0.13.0
Affected Resource(s)
google_logging_metric
andgoogle_monitoring_alert_policy
Terraform Configuration Files
Expected Behavior
The label extractor is referenced within the
google_monitoring_alert_policy
resource:That should have printed out the entire json string within the json payload message under "Policy Document" of the Alert message:
Actual Behavior
The Alert message "Policy Document" section shows "(null)"
b/275110452
The text was updated successfully, but these errors were encountered: