Skip to content

Commit

Permalink
Re-enable workload metrics integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass committed Jan 27, 2022
1 parent 9b5f9a8 commit 54d87a7
Show file tree
Hide file tree
Showing 5 changed files with 5,813 additions and 5,610 deletions.
5 changes: 5 additions & 0 deletions exporter/collector/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Additionally, the previous exporter had a hardcoded list of known metric domains
where this "prefix" would not be used. The new exporter allows full configuration
of this list via the `metric.known_domains` property.

The previous exporter would by default only call CreateMetricDescriptor for metrics with domain
`custom.googleapis.com` or `external.googleapis.com`. The new exporter will try to call
CreateMetricDescriptor regardless of domain, unless `metric.skip_create_descriptor` or
`metric.create_service_timeseries` are true.

Additionally, the DisplayName for a metric used to be exactly the
`{metric_name}`. Now, the metric name is chosen as the full-path after the
domain name of the metric type. E.g. if a metric called
Expand Down
2 changes: 1 addition & 1 deletion exporter/collector/integrationtest/testcases.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ var (
Name: "GKE Workload Metrics",
OTLPInputFixturePath: "testdata/fixtures/workload_metrics.json",
ExpectFixturePath: "testdata/fixtures/workload_metrics_expect.json",
Skip: true,
Configure: func(cfg *collector.Config) {
cfg.MetricConfig.Prefix = "workload.googleapis.com/"
cfg.MetricConfig.SkipCreateMetricDescriptor = true
},
},
{
Expand Down
Loading

0 comments on commit 54d87a7

Please sign in to comment.