Status Update
Comments
di...@google.com <di...@google.com> #2
[Deleted User] <[Deleted User]> #3
[Deleted User] <[Deleted User]> #4
[Deleted User] <[Deleted User]> #5
[Deleted User] <[Deleted User]> #6
jo...@temp.yupiq.com <jo...@temp.yupiq.com> #7
Can somebody tell the exact metric for memory based autoscaling
[Deleted User] <[Deleted User]> #8
ad...@google.com <ad...@google.com>
ew...@squareup.com <ew...@squareup.com> #9
mw...@gmail.com <mw...@gmail.com> #10
be...@gtempaccount.com <be...@gtempaccount.com> #11
[Deleted User] <[Deleted User]> #12
br...@shopgiddy.com <br...@shopgiddy.com> #13
[Deleted User] <[Deleted User]> #14
Same, here It would be very nice if I do not have to "click-ops" the gui.
Regarding the global
type, should we set it like this?
Terraform example:
AND resource.type=\"global\"
[Deleted User] <[Deleted User]> #15
AND resource.type=\"global\"
works, thank you very much!
ky...@intuit.com <ky...@intuit.com> #16
Adding AND resource.type=\"global\"
is not working for me.
When navigating to the metric editor in the GUI I get an error: "Chart definition invalid. The supplied filter does not specify a valid combination of metric and monitored resource descriptors. The query will not return any time series."
Interestingly when I remove "Resource type: Global" from the "find resource type and metric" selection the error goes away and it appears to be working. However Terraform will not let me create the alert without a resource type.
sy...@brightedge.com <sy...@brightedge.com> #17
te...@gmail.com <te...@gmail.com> #18
[Deleted User] <[Deleted User]> #19
co...@thomsonreuters.com <co...@thomsonreuters.com> #20
Still wasted a lot of time, and I was using a different iac provider not Terraform (Pulumi)
rc...@google.com <rc...@google.com> #21
Adding resource.type=\"global\" to the filter did not work.
Cx beleives the problem comes from the severity keyword that's not recognized:
Field alert_policy.conditions[0].condition_threshold.filter had an invalid value
Maybe it's the terraform documentation that's not clear about how to write filters, but the strange thing is that this filter works when I create my alert by hand in the gcp console.
rc...@google.com <rc...@google.com> #22
[Deleted User] <[Deleted User]> #23
ns...@google.com <ns...@google.com> #24
to...@wikimedia.de <to...@wikimedia.de> #25
It's not so much a feature request but rather a bug report.
to...@wikimedia.de <to...@wikimedia.de> #26
Ok after some debugging it was indeed just a matter of finding the correct resource.type
.
The first problem is the dropdown list is very long.
The difference between using the UI and the API (terraform) that errors when not providing a resource.type
makes you think something like global or api would resolve it. In our case using k8s_container
resolved the problem. For any future readers of this thread identifying where the original google_logging_metric
is filtering on will help you determine the resource.type
where the actual metrics ends up.
mi...@gree.net <mi...@gree.net> #27
Adding AND resource.type=\"global\"
This doesn't cause an error, but
Since we can't actually detect the metrics, we can't
I'm having trouble.
ar...@hedera.com <ar...@hedera.com> #28
So basically whatever the resouce.type is for your logs based metric needs to be defined in the alert as well. In my case it was gcs_bucket
[1]
ve...@huntington.com <ve...@huntington.com> #29
Adding AND resource.type=\"global\" is not working for me.
ve...@huntington.com <ve...@huntington.com> #30
br...@buddiez.app <br...@buddiez.app> #31
qb...@cfgo.com <qb...@cfgo.com> #32
ab...@worldline.com <ab...@worldline.com> #33
[Deleted User] <[Deleted User]> #34
AND resource.type=\"logging_bucket\"
[Deleted User] <[Deleted User]> #35
For future readers:
If you are trying to measure instance group size:
metric.type = "compute.googleapis.com/instance_group/size"
AND resource.type="instance_group"
As someone mentioned earlier, " the resource.type
must be THE SAME that you put on the metric "
sh...@gmail.com <sh...@gmail.com> #36
I specified
"metric.type=\"
ab...@worldline.com <ab...@worldline.com> #37
The filter contains unknown resource type: project
We have been facing this issue since more than a year now, are there any plans to bring any improvement ? resource.type=project seems a very basic thing which should be present like "global".
dh...@google.com <dh...@google.com>
dh...@google.com <dh...@google.com>
th...@ustudio.com <th...@ustudio.com> #38
We also ran into this issue, and resolved it by, rather than using a log-based metric as the basis for a threshold-based alert policy, we use just an alert policy, with a conditionMatchedLog
condition (in Terraform, this is condition_matched_log
in the condition block).
This resolves the issue of having to guess which resource type the generated log-based metric is in, because there is no log-based metric at all.
It also is considerably simpler, as there is only one resource per filter, and the threshold timing doesn't need to be figured out.
ab...@worldline.com <ab...@worldline.com> #39
The creation of alerts from log metrics is not the smoothest way in many cases because the API channel doesnt support many of the resource.types like gce_firewall_rule, gce_route etc. Can you let us know when there will be a fix for this available ?
Description
What you would like to accomplish:
See
How this might work:
I see 3 ways of implementing this:
- allow the GUI way of working to be valid in the API as well (without a resource-type filter, and that the API server doesn't fail)
- create a resource-type for log-based metrics that can be used (resource.type="logging" or something like that)
- make resource.type="metric" valid for log-based metric.
If applicable, reasons why alternative solutions are not sufficient:
There are lots of recommendations from the Security Health Analytics component that include creating an alert for custom log metric events, which I really would like to automate. Currently, this is not possible, since the only way to achieve this is actually using the Stackdriver GUI.
Other information (workarounds you have tried, documentation consulted, etc):
The documentation
ERROR: (gcloud.alpha.monitoring.policies.create) INVALID_ARGUMENT: Field alert_policy.conditions[0].condition_threshold.filter had an invalid value of "metric.type="