dazzling-rocket-15242
11/11/2019, 2:35 PMunrecognized resource type (Check): gcp:logging/metric:Metric
. From what I can tell this is an error coming back from a grpc call against what I assume is the pulumi server. Any ideas? I haven't tried other languages and won't; will just go back to terraform 😞.gentle-diamond-70147
11/11/2019, 4:38 PMdazzling-rocket-15242
11/12/2019, 4:40 AMargs := pLogging.MetricArgs{
BucketOptions: map[string]interface{}{
"exponentialBuckets": map[string]interface{}{
"numFiniteBuckets": 64,
"growthFactor": 2,
"scale": 0.01,
},
},
Description: logMetric.description,
Filter: "resource.type=\"container\"\nresource.labels.cluster_name=\"redacted\"\nresource.labels.project_id=\"private\"\nresource.labels.zone:\"eyes-only\"\nresource.labels.container_name=\"nothing-to-see-here\"\nresource.labels.namespace_id=\"namespace\"\n\"Leaving \"\n",
LabelExtractors: nil,
MetricDescriptor: map[string]interface{}{
"metric_kind": "DELTA",
"value_type": "DISTRIBUTION",
"unit": "1",
},
Name: logMetric.name,
Project: logMetric.project,
ValueExtractor: "",
}
metricConfig, err := pLogging.NewMetric(ctx, logMetric.displayName, &args)
if err != nil {
return err
}
ctx.Export(logMetric.displayName, metricConfig.Name())
gentle-diamond-70147
11/12/2019, 7:24 PMerror: Plan apply failed: Error creating Metric: googleapi: Error 400: A value extractor is required for a DISTRIBUTION value type or a GAUGE metric kind.
dazzling-rocket-15242
11/12/2019, 8:48 PMgentle-diamond-70147
11/12/2019, 8:49 PMdazzling-rocket-15242
11/12/2019, 8:49 PMgentle-diamond-70147
11/12/2019, 8:51 PMdazzling-rocket-15242
11/12/2019, 8:54 PMgentle-diamond-70147
11/12/2019, 8:58 PMdazzling-rocket-15242
11/12/2019, 8:58 PM