millions-furniture-75402
06/29/2021, 12:35 PMLogMetricFilter
, e.g.
const yada = new aws.cloudwatch.LogMetricFilter("yada", {
pattern: "",
logGroupName: dada.name,
metricTransformation: {
name: "EventCount",
namespace: "YourNamespace",
value: "1",
},
});
How do I create a cloudwatch alarm with this? With regular metrics, I can use awsx an .createAlarm()
but even falling back to the aws
package for the LogMetricFilter
it’s unclear to me. https://www.pulumi.com/docs/reference/pkg/aws/cloudwatch/metricalarm/witty-candle-66007
06/29/2021, 12:39 PMyada.name
for the metricName
property in the MetricAlarm resource.billowy-army-68599
06/29/2021, 12:40 PMcreateAlarm()
component resource, this is what it seems to do:
https://github.com/pulumi/pulumi-awsx/blob/333b1ff0d649e3f19187c2e8edc292dd6c131fbd/nodejs/awsx/cloudwatch/metric.ts#L262-L283millions-furniture-75402
06/29/2021, 12:49 PMyada.metricTransformation.name