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

Missing "metadata" (MetricDescriptorMetadata) property in google_logging_metric's "metric_descriptor" #20581

Open
hrimhari opened this issue Dec 4, 2024 · 0 comments

Comments

@hrimhari
Copy link

hrimhari commented Dec 4, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

While defining a metric, the default sample rate is 1 minute.

To have a more granular metric, one needs to specify the samplePeriod property in the metadata property of metricDescriptor.

The metadata property is currently missing from the metric_descriptor property of this provider.

New or Affected Resource(s)

  • google_logging_metric

Potential Terraform Configuration

resource "google_logging_metric" "logging_metric" {
  name   = "my-(custom)/metric"
  filter = "resource.type=gae_app AND severity>=ERROR"
  metric_descriptor {
    metric_kind = "DELTA"
    value_type  = "INT64"
    metadata {
        samplePeriod = "3.5s"
    }
  }
}

References

API Documentation

b/383122682

@github-actions github-actions bot added forward/review In review; remove label to forward service/logging labels Dec 4, 2024
@BBBmau BBBmau added size/s and removed forward/review In review; remove label to forward labels Dec 9, 2024
@BBBmau BBBmau added this to the Goals milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants