-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[enhancement] Add support for log-based metrics #1236
[enhancement] Add support for log-based metrics #1236
Comments
I would also love to see this. |
Is anyone already working on this issue? |
Not that I know of! Are you looking to contribute? |
(do keep in mind if you are, that these days we're trying to generate most new resources using the magic-modules framework) |
@danawillow any update on log-based metrics support in terrafrom ? |
@danawillow just wanna confirm again , any update on log-based metrics support in terraform ? |
@chrisst do you know? (I'm actually on a break from Terraform at the moment, so I'm afraid tagging me in issues isn't going to be much help) |
No updates at this point :( I'll add it to my queue though when I get some time. |
Waiting for any updates. |
Hello @chrisst, do we have any update on this enhancement support? :) |
Hello @chrisst, thanks for checking on this lately. I see a pull request is pending approval on the magic modules repository. Will the update be pushed in this repository once approved? Looking forward to have it soonest. |
Yes, Magic Modules is a code generator that we use to build the Terraform Provider Google code base. Once that PR is ready it will generate PR's into all the downstream code bases including this and https://github.com/terraform-providers/terraform-provider-google-beta/ |
That's good to know @chrisst. Looks like I have to wait for this update. Adding labels via terraform would also be great. :) |
We would like to have the ability to create the metric through Terraform. Currently, we validated by creating the manually / sdk and the log based alert policy through Terraform. Please notify when available.. |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Hi,
We are planning to use log-based metrics to create counter metrics from application logs or google cloud API logs (such as reported errors for Cloud KMS Decrypt calls), and unless mistaken this is not yet supported in terraform.
I believe such terraform resource would be using the API detailed in https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics
Terraform Version
Expected Behavior
Be able to create at least simple log-based metric counters that would look something like:
The text was updated successfully, but these errors were encountered: